Hey all -
I'm running into an issue with an .htaccess file with some 301 redirects.
I'm running a server that has a site which has an .htaccess file redirecting several domain names to another single canonical name. Those redirects work great, until you try going to a particular subfolder of a site which starts with an underscore, for example:
oldsitedomainname.com/_admin
would be redirected to:
http://www.newsitedomainname.com/_admin
however, it's actually being re-written like this:
http://www.newsitedomainname.com_admin
which doesn't work for obvious reasons.
I added the following code snippet from a 301 howto in order to add a trialing slash to URLs, which seems to work great, but that hasn't solved the problem:
rewriteCond $1 !/$
rewriteCond %{REQUEST_FILENAME}/ -d
rewriteRule (.+) http://www.newsitedomainname.com/$1/ [R=301,L]
Anyone have any suggestions? Thanks in advance!
Recent comments
22 hours 22 min ago
1 day 3 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 23 hours ago
1 day 23 hours ago
2 days 4 hours ago
2 days 11 hours ago
2 days 12 hours ago
2 days 13 hours ago