Forum Moderators: phranque

Message Too Old, No Replies

Htaccess file blocking google spyders, need help

I need help to see what is not configured right about my htaccess file

         

studio708

1:56 am on Apr 29, 2008 (gmt 0)

10+ Year Member



I have a problem with my htaccess file (I believe this is the problem)

Google webmaster tools for my site is throwing up a:

"We can't currently access your home page because of an unreachable error."

Can you guys review my htaccess file to see if there is anything that is mis-configured?

RewriteEngine On
RewriteBase /

# Don't redirect any files or directories that exist on the server
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

ErrorDocument 404 /errors/404.php
DirectoryIndex index.php

# Individual pages
RewriteRule ^process.cfm$services/ [L,R=301]
RewriteRule ^index.cfm$/ [L,R=301]
RewriteRule ^index.php$/ [L,R=301]
RewriteRule ^hiring.cfm$web-design-jobs-victoria-bc/ [L,R=301]
RewriteRule ^open_source_templates.cfm$free-website-templates/ [L,R=301]
RewriteRule ^search_engine_optimization.cfm$services/ [L,R=301]
RewriteRule ^web_design_testimonials.cfm$testimonials/ [L,R=301]
RewriteRule ^general_design_prices.cfm$contact-quote/ [L,R=301]
RewriteRule ^volunteer.cfm$environment/ [L,R=301]
RewriteRule ^studiotwentyeight.com_kols_graphics.cfm$windows-themes/ [L,R=301]
RewriteRule ^photography_gallery.cfm$stock-photography/ [L,R=301]
RewriteRule ^graphic_designs.cfm$portfolio/ [L,R=301]
RewriteRule ^[Ii]conica_custom_icons.cfm$portfolio-logo/ [L,R=301]
RewriteRule ^links.cfm$legal/ [L,R=301]
RewriteRule ^blog.cfm$blog/ [L,R=301]
RewriteRule ^projects/photography_blog.cfm$photography/ [L,R=301]

# Downloads
RewriteRule ^downloads/UXtheme-Patcher-XP-SP2.zipdownloads/windows-themes/UXtheme-Patcher-XP-SP2.zip [L,R=301]
RewriteRule ^downloads/S7-Quote-Form.pdf$contact-quote/ [L,R=301]

RewriteRule ^blog(.*)blog$1 [L]

# Handle rewriting non-directories to directories
RewriteRule ^([a-zA-Z0-9\-]+(/[a-zA-Z0-9\-]+)*)/$$1.php [L]
RewriteRule ^([a-zA-Z0-9\-]+(/[a-zA-Z0-9\-]+)*)$$1/ [L,R=301]

# Blog posts
RewriteRule ^200[67]/blog/ [L,R=301]

# Everything else (cfm migration)
RewriteRule ^(.*)\.cfm$$1/ [L,R=301]

g1smd

1:10 am on Apr 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Your 301 redirects should include the host name so that domain canonicalisation still occurs for those.

Your code is very difficult to read as there a LOT of spaces missing and things are run together.