hi guys, i moved my site from root to a folder and need to redirect all search engine traffic to the right place, so what i need is this: When the request is site.com/any-file-name.here i want it to automaticly redirect to site.com/myfolder/any-file-name.here Thanks for any kind of help you can offer. I appreciate your time looking at this.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.here$ http://www.domain.com/myfolder/$1.here [R=301,L]
Hi, I did not test it, but I think that Nintendo's suggestion will go in an endless loop from site.com/any-file-name.here to site.com/myfolder/any-file-name.here to site.com/myfolder/myfolder/any-file-name.here to ... I would try this: Options +Indexes Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_URI} !^/myfolder RewriteRule ^(.*)$ /myfolder/$1 [R=301,L] Code (markup): Jean-Luc