Page 1 of 1

URL format

Posted: 27 Jan 2019, 09:18
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

Re: URL format

Posted: 28 Jan 2019, 09:48
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:

Re: URL format

Posted: 30 Jan 2019, 05:43
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 8215 times
Untitled-2.png
Untitled-2.png (39.8 KiB) Viewed 8215 times
Untitled-3.png
Untitled-3.png (30.06 KiB) Viewed 8215 times

Re: URL format

Posted: 30 Jan 2019, 06:23
by truefriend-cz
... next... 4. image (sorry, attachment limit from by forum).
Untitled-4.png
Untitled-4.png (17.07 KiB) Viewed 8214 times
Legend:
URL "domain.tld" is not really exist on the Internet but it is localhost server.

Re: URL format

Posted: 30 Jan 2019, 12:34
by cas
Then it looks like a bug and should be reported in the bugtracker :idea: