Hi,
I have a site newly relaunched using Expression Engine and I am pulling my hair out trying to get the 301 redirects to work. I have been through the forums thoroughly and tried everything, but am still having no joy. Everything I have tried either causes an “internal server error” crashing the site, or just redirects to the site’s index template with the old URL still remaining rather than redirecting to the new location.
I have about 20 URLS from the old version of the site that still drive significant traffic and would like them to redirect to the new locations.
If anyone can help with this it would be greatly appreciated. Here is my .htaccess file as it currently is:
# -- LG .htaccess Generator Start --
# .htaccess generated by LG .htaccess Generator v1.0.0
# <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/">http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/</a>
# secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Dont list files in index pages
IndexIgnore *
# EE 404 page for missing pages
ErrorDocument 404 /index.php?/
# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>
RewriteEngine On
RewriteBase /
# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
# Remove index.php
# Uses the "include method"
# <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(site|search|demo|news|includes|testing|videos|scripts|stuff|blog|botw|about|privacy|newsletter|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
Header set imagetoolbar "no"
</FilesMatch>
# -- LG .htaccess Generator End --
Redirect 301 /Articles/Daily/805/1/23/2008/The_Man_Who_Saved_the_World_by_Doing_Nothing <a href="http://www.gimundo.com/news/article/the-man-who-saved-the-world-by-doing-nothing/">http://www.gimundo.com/news/article/the-man-who-saved-the-world-by-doing-nothing/</a>Any Suggestions?