Forum Moderators: phranque
RewriteRule ^page/$ http://www.example.com/page.html [R=301,L]
RewriteRule ^page$ http://www.example.com/page.html [R=301,L]
RewriteRule ^page/index\.html$ http://www.example.com/page.html [R=301,L]
Are they "grammatically" correct?
Also, while having the above where I redirect index.html into something else, at the same time, is it OK to have a section that translates index.html into a parent folder:
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*index\.html[^\ ]*\ HTTP/
RewriteRule ^(([^/]+/)*)index\.html$ http://www.example.com/$1? [R=301,L]
Can all this combined create some kind of loop that creates non-existing folder structure?
I'm just trying to troubleshoot recent avalanche of requests from Google and Yahoo for strange structured where they would build one subfolder onto another. (example.com/folder/folder1/folder2/folder3/ while they are all subfolders at the same root level)
When I check my site manually, all is ok. If I use a tool that creates a sitemap, all links are fine.
:s
Thanks