I've got pretty urls set up on my cmsms site like below:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
RewriteCond %{HTTP_HOST} ^site.com
RewriteRule (.*) http://www.site.com/$1 [R=301,L]
It works fine (most of the time!)
However...
I want to 301 redirect a page say it's called bigbear.htm
When I add this to my .htacess
Code: Select all
redirect 301 /bigbear.htm http://www.site.com/index.htm
It takes me to
www.site.com/index.htm?page=bigbear.htm
Which is actually worse than it was before!
What am I doing wrong?
NB - Doesn't matter what variant I redirect the page to, it happens the same...