Forum Moderators: phranque
[edited by: jdMorgan at 3:59 pm (utc) on May 6, 2010]
[edit reason] example.com [/edit]
# Index Redirect back to bare folder URL
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
[edited by: jdMorgan at 4:00 pm (utc) on May 6, 2010]
[edit reason] please use only example.com [/edit]
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
redirect 301 /example.html http://www.example.com/example/blue/
redirect 301 /example.html http://www.example.com/example2/
redirect 301 /example.html http://www.example.com/example3/
redirect 301 /example1.html http://www.example.com/example1/
redirect 301 /example2.html http://www.example.com/example/
RewriteRule ^example\.html$ http://www.example.com/example/blue/ [R=301,L]
[edited by: jdMorgan at 1:41 am (utc) on May 7, 2010]
[edit reason] example.com [/edit]
I've searched and search for an example of how to do a page rewrite and not finding an answer anywhere that makes sense to me.