View Single Post
Old 03-15-2006, 04:41 PM   #4 (permalink)
Matthew Doucette
Inactive
 
Join Date: 02-18-06
Posts: 13
iTrader: 0 / 0%
Latest Blog:
None

Matthew Doucette is liked by many
Richard at doriat.com came up with a fix instantly. I hope it is ok to post this here:

http://www.doriat.com/viewtopic.php?p=1217

This was the fix Richard suggested, which works:

Try this line:
Code:
RewriteRule .* http://xona.com%{REQUEST_URI} [R=301,L]
instead of this line
Code:
RewriteRule ^(.*)$ http://xona.com/domainhacks/$1 [R=301]
If you wish, please comment on this. I would like to learn more about .htaccess coding.

I can see that Richard's fix works in all sub-folders, due to the access to the REQUEST_URI variable. Perhaps this means that I should put this line ONLY ONCE in the root .htaccess file, instead if in every sub-folder .htaccess file, and have it be inherited.
Matthew Doucette is offline   Reply With Quote