satori,
IMHO, when you attempt to follow someone's tutorial on any subject and have difficulties, the best course of action is to ask the source.
A review of your .htaccess code:
Code:
# BEGIN Compress text files
<IfModule mod_deflate.c>
[rant #4]
The definition of an idiot is someone who repeatedly does the same thing expecting a different result. Asking Apache to confirm the existence of ANY module with an <IfModule> ... </IfModule> wrapper is the same thing in the webmaster world. DON'T BE AN IDIOT! If you don't know whether a module is enabled, run the test ONCE then REMOVE the wrapper as it is EXTREMELY wasteful of Apache's resources (and should NEVER be allowed on a shared server).
[/rant 4]
That means test ONCE then remove the @#$% wrappers. Not doing that is an abuse of the server (and should get your removed from a shared server)!
<FilesMatch "\.(css|js|x?html?|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
# END Compress text files
# BEGIN Expire headers
<IfModule mod_expires.c>
Ditto
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
<FilesMatch "\\.(x?html?)$">
ExpiresByType text/html "access plus 600 seconds"
</FilesMatch>
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
Again? :nono:
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</FilesMatch>
<FilesMatch "\\.(x?html?)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</FilesMatch>
</IfModule>
# END Cache-Control Headers
# BEGIN Turn ETags Off
<IfModule mod_headers.c>
... and again ... and again ... and again ...
Header unset ETag
</IfModule>
FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
# <IfModule mod_headers.c>
# Header unset Last-Modified
# </IfModule>
# END Remove Last-Modified Header
Options -Indexes
RewriteEngine on
RewriteBase / # where's the mod_alias redirect this is UNDOing?
# Adds a trailing slash to directories
[indent]VERY bad "technique" for a webmaster as this "confuses" browsers looking for relative links.[/indent[
RewriteCond %{REQUEST_FILENAME} !-f # not a file
RewriteCond %{REQUEST_URI} !\..+$ # does not end with an extension - does this mean it's a directory? Why not use -d?
RewriteCond %{REQUEST_URI} !/$ # this ANDed condition will always match on an Apache 2.x server
RewriteRule ^(.*)$ http://www.easytoinsureme.com/$1/ [L,R=301,NC] # No case? Why? {REQUEST_URI} is case sensitive.
RewriteCond %{HTTP_HOST} ^easytoinsureme\.com [NC]
RewriteRule ^(.*)$ http://www.easytoinsureme.com/$1 [R=permanent,L,NC]
RewriteCond %{HTTP_HOST} ^new\.easytoinsureme\.com [NC]
RewriteRule ^(.*)$ http://www.easytoinsureme.com/$1 [R=permanent,L,NC] # that looks okay except for the No Case flag
RewriteCond %{HTTP_HOST} ^news.easytoinsureme\.com [NC]
RewriteRule (.*) http://www.easytoinsureme.com/affordable-health-insurance/$1 [R=301,L]
#RewriteRule ^blogs/(.*)$ http://news.easytoinsureme.com/ [R=permanent,L]
#RewriteRule ^articles/(.*)$ http://news.easytoinsureme.com/ [R=permanent,L]
RewriteRule ^States/(.*)0$ http://www.easytoinsureme.com/$1 [R=permanent,L,NC]
RewriteRule ^(.*)0$ http://www.easytoinsureme.com/$1 [R=permanent,L,NC]
RewriteRule ^States/(.*)$ http://www.easytoinsureme.com/$1 [R=permanent,L,NC]
RewriteRule ^easytoinsureme\ pages/(.*)$ http://www.easytoinsureme.com/ [R=permanent,L]
RewriteRule ^quote/(.*)$ http://www.easytoinsureme.com/-quotes.html [R=permanent,L]
RewriteCond %{REQUEST_URI} ^/index.html$
RewriteRule ^index.html$ / [R,L] # Remove index.html? OMG! Why?
ErrorDocument 400 /400.html
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
redirect 301 http://new.easytoinsureme.com http://www.easytoinsureme.com
redirect 301 /autoquoteform.html /health-insurance-quotes.html
redirect 301 /flhealthinsurance.html /florida-health-insurance.html
redirect 301 /floridahealthinsurance.html /florida-health-insurance.html
redirect 301 /virgina-health-insurance.html /virginia-health-insurance.html
redirect 301 /ohiohealthinsurance.html /ohio-health-insurance.html
redirect 301 /health-insurance-ohio.html /ohio-health-insurance.html
redirect 301 /pennsylvaniahealthinsurance.html /pennsylvania-health-insurance.html
redirect 301 /pennsylvanialifeinsurance.html /pennsylvania-health-insurance.html
redirect 301 /pennsylvania_health_insurance.html /pennsylvania-health-insurance.html
redirect 301 /health-insurance-pennsylvania.html /pennsylvania-health-insurance.html
redirect 301 /medical-mutual-ohio.html /medical-mutual.html
redirect 301 /individual-health-insurance-company.html /health-insurance-quote.html
redirect 301 /individual-health-insurance-quotes-form.html /health-insurance-quotes.html
redirect 301 /cover-florida-health-insurance.html /florida-health-insurance.html
redirect 301 /health-insurance-florida.html /blue-cross-blue-shield.html
redirect 301 /links.html http://www.easytoinsureme.com
redirect 301 /life-insurance.html http://www.easytoinsureme.com
redirect 301 /blue-cross-blue-shield-pennsylvania.html /highmark-blue-cross-blue-shield.html
redirect 301 /individual-health-insurance-states.html /individual-health-insurance.html
redirect 301 /adult_basic.html /pennsylvania-health-insurance.html
redirect 301 /Connecticut-health-insurance.html /connecticut-health-insurance.html
redirect 301 /chip.html http://www.easytoinsureme.com
redirect 301 /health-insurance-quotes.php /health-insurance-quotes.html
redirect 301 /Mississippi-health-insurance.html /mississippi-health-insurance.html
#redirectMatch 301 ^/articles/ http://news.easytoinsureme.com/
#redirectMatch 301 ^/blogs/ http://news.easytoinsureme.com/
redirectMatch 301 ^/Health-Insurance/ http://www.easytoinsureme.com/individual-health-insurance.html
redirectMatch 301 ^/Health-Insurance-Company/ http://www.easytoinsureme.com/health-insurance-quote.html
Why RedirectMatch when you're not using regex?
#redirectMatch 301 ^/States/ http://www.easytoinsureme.com/individual-health-insurance.html
OMG! Too many little things for me to whine about! I hope the tutorial helped.
Regards,
DK
Bookmarks