For each site, I have a number of RewriteRules of the form:
- Code: Select all
RewriteRule ^some/pretty/path$ /template.php [QSA,NC,L]
I've found that this seems to drop the port number. So I tried changing it to:
- Code: Select all
RewriteRule ^some/pretty/path$ http://%{HTTP_HOST}/template.php [QSA,NC,L]
This preserves the port number, but now it causes a redirect, so the URL looks like /template.php, which I don't want.
How do you preserve the port number without causing a redirect? Any help is appreciated.
Regards,
Chris