URL format

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
truefriend-cz
Posts: 66
Joined: 08 Jan 2019, 07:14

URL format

Post by truefriend-cz »

Hi. I have problem. My .htaccess file in root web contain lines for rewrite url to subdomain. But Mantis only have problem with this formating.

Code: Select all

# subdomain to directory
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(\w+)\. [NC]
RewriteCond %{REQUEST_URI}:%1 !^/([^/]+)/([^:]*):\1
RewriteRule ^(.*)$ /%1/$1 [QSA]
Original server location \etc\www\bugtracking\*.php
Standart web location http://domain.tld/bugtracking/*.php
.htaccess converted to http://bugtracking.domain.tld/*.php

Problem is Mantis no accepted http://bugtracking.domain.tld/*.php formating but show links as http://bugtracking.domain.tld/bugtracking/*.php

Where in MantisBT function for determinating formating URL? Or how i can fix this issue?
I want URL format: http://bugtracking.domain.tld/*.php

Thanks
Mantis version: 2.23.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english
cas
Posts: 1587
Joined: 11 Mar 2006, 16:08
Contact:

Re: URL format

Post by cas »

Do not think this has anything to do with Mantis but more with yout htaccess file.
Look for examples here:
https://stackoverflow.com/questions/106 ... -directory
https://stackoverflow.com/questions/196 ... 0#29363720
Have fun testing :mrgreen:
truefriend-cz
Posts: 66
Joined: 08 Jan 2019, 07:14

Re: URL format

Post by truefriend-cz »

Yes. From these examples / sources I used it. When I was looking for a project management system, I tested about 38 PHP projects on my local server (mostly CMS systems). I also tested the functionality with .htaccess file and it was not a problem.

I've found that the problem is only with some of the Mantis script links. If i moving/click mouse on "Blue button" on nav-bar for "Report Issue" then show link in ok format. But if i moving/click mouse on left bar "My View, View Issuse, Report Issue, Chengelog, Roadmap", etc. then show in bad format.
Untitled-1.png
Untitled-1.png (38.96 KiB) Viewed 6668 times
Untitled-2.png
Untitled-2.png (39.8 KiB) Viewed 6668 times
Untitled-3.png
Untitled-3.png (30.06 KiB) Viewed 6668 times
Last edited by truefriend-cz on 30 Jan 2019, 06:36, edited 1 time in total.
Mantis version: 2.23.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english
truefriend-cz
Posts: 66
Joined: 08 Jan 2019, 07:14

Re: URL format

Post by truefriend-cz »

... next... 4. image (sorry, attachment limit from by forum).
Untitled-4.png
Untitled-4.png (17.07 KiB) Viewed 6667 times
Legend:
URL "domain.tld" is not really exist on the Internet but it is localhost server.
Mantis version: 2.23.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english
cas
Posts: 1587
Joined: 11 Mar 2006, 16:08
Contact:

Re: URL format

Post by cas »

Then it looks like a bug and should be reported in the bugtracker :idea:
Post Reply