File: /home/quick.org.uk/public_html/.htaccess
# invoke rewrite engine
RewriteEngine On
RewriteBase /
Options -Indexes
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
# Redirect to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#Redirect 400,401,403,404,500 to main website
ErrorDocument 400 http://quick.org.uk
ErrorDocument 401 http://quick.org.uk
ErrorDocument 403 http://quick.org.uk
ErrorDocument 404 http://quick.org.uk
ErrorDocument 500 http://quick.org.uk
# Specific redirections
RewriteRule ^index.html$ / [L,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.php$ index_php.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^index2\.htm$
RewriteRule ^[\/]?$ index2.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^index2\/htm$
RewriteRule ^[\/]?$ index2/htm.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^menu\.htm$
RewriteRule ^[\/]?$ menu.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^s\=Internet\+$
RewriteRule ^[\/]?$ s_Internet_.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^s\=lol$
RewriteRule ^[\/]?$ s_lol.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^s\=Quick\+$
RewriteRule ^[\/]?$ s_Quick_.html? [L,R=301]
RewriteCond %{QUERY_STRING} ^s\=searching\+on\+the\+internet$
RewriteRule ^[\/]?$ s_searching_on_the_internet.html? [L,R=301]
RewriteRule ^america%E2%80%99s\-next\-top\-model\-judge\-tyra\-banks\-to\-launch\-new\-site.html$ america_s-next-top-model-judge-tyra-banks-to-launch-new-site.html? [L,R=301]
# Redirect all extensions to html
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.shtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.phtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jhtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.htm$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.php$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.aspx$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.asp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jsp$ $1.html [L,NC,R=301]
# End: Redirect all extensions to html