Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: incrediBILL
"redirect 301 / [sub.example.com...]
and Firefox is giving me an error message saying:
"Redirection limit for this URL exceeded. Unable to load the requested page. This maybe caused by cookies that are blocked"
I've tried allowing all cookies but it makes no difference. Both addresses are in the same subdomain of the same TLD.
1st request: /somefile -> redirects to /folder/somefile
2nd request: /folder/somefile -> redirects to /folder/folder/somefile
3rd request: /folder/folder/somefile -> redirects to /folder/folder/folder/somefile
etc. This continues until the maximum redirection limit for either the browser or the server is reached, whichever is lower.
If you have sufficient permissions from your host to use mod_rewrite [httpd.apache.org] in .htaccess, then you can test the requested folder, and only redirect if "/folder" is not present in the request. This will prevent the looping. Something like:
RewriteCond $1 !^folder/
RewriteRule (.*) /folder/$1 [L]