If have .htaccess in the root file for rewrite URL subdomain to directory:
My domain is http://bugs.domain.tld
and system path for Mantis is /etc/apache2/www/root/bugs
.htaccess:
Code: Select all
# subdomain to directory
RewriteCond %{HTTP_HOST} !^www\.domain\.tld$
RewriteCond %{HTTP_HOST} ^(\w+)\.domain\.tld$
RewriteCond %{REQUEST_URI}:%1 !^/([^/]+)/([^:]*):\1
RewriteRule ^(.*)$ /%1/$1 [QSA]
i wanted domain in format http://bugs.domain.tld/bug_report_page.php
How i can removing bugs/ from URL?
Thanks