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