I looked through my sites error log as well as google’s webtools error log and noticed that a handful of my old urls from a pre-existing CMS are coming up as 404s. I’d like to be able to redirect these at least in a general way but I’m completely unfamiliar with .htacess rules.
My current .htaccess file looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php\?/$1 [L]
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
I have two scenarios I’d like to know how to redirect:
From a dynamic page to a static page:
http://mysite.com/category/{variable} to mysite.com/forums/
From a dynamic page to another dynamic page with the same variable:
http://www.mysite.com/blog/read/{variable} to http://www.mysite.com/articles/read/{variable}
These can all be 301 redirects. Thanks for any help you can provide.
