I have had a bit of a problem with my sitemap recently and Google started looking for all the wrong pages in the wrong places. These now appear to be the only ones it is looking for. As a result and due to changes to my site structure, I decided to create a .htaccess file to permanently redirect everything to the correct locations and hopefully tell Google where to go (in the nicest possible sense). Anyway, I am unclear as to whether my .htaccess file is working. I know that the ErrorDocument is working but the rest... There appear to be a number of different suggestions as to how to permanently redirect using .htaccess (I went with http://www.askapache.com). My .htaccess file follows. All suggestions welcome. Thanks. Options +Indexes Options +FollowSymlinks DirectoryIndex index.html Redirect 301 /Bathrooms.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/Bathrooms.html Redirect 301 /Case_studies.html%20changefreq=monthly%20priority=0.7 http://www.steinbeck-reeves.co.uk/Case_studies.html Redirect 301 /Contact.html%20changefreq=monthly%20priority=0.5 http://www.steinbeck-reeves.co.uk/Contact.html Redirect 301 /Design.html%20changefreq=monthly%20priority=0.8 http://www.steinbeck-reeves.co.uk/Design.html Redirect 301 /Developers.html%20changefreq=monthly%20priority=0.8 http://www.steinbeck-reeves.co.uk/Developers.html Redirect 301 /Gallery.html%20changefreq=monthly%20priority=0.7 http://www.steinbeck-reeves.co.uk/Gallery.html Redirect 301 /property/66RCG/floorplan.html http://www.steinbeck-reeves.co.uk/index.html Redirect 301 /Inspirations.html%20changefreq=monthly%20priority=0.4 http://www.steinbeck-reeves.co.uk/Inspirations.html Redirect 301 /Kitchens.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/Kitchens.html Redirect 301 Links.html%20changefreq=monthly%20priority=0.1 http://www.steinbeck-reeves.co.uk/Links.html Redirect 301 /Terms.html%20changefreq=monthly%20priority=0.0 http://www.steinbeck-reeves.co.uk/Terms.html Redirect 301 index.html%20changefreq=monthly%20priority=0.0 http://www.steinbeck-reeves.co.uk/index.html Redirect 301 /main.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/index.html ErrorDocument 404 http://www.steinbeck-reeves.co.uk/index.html Code (markup): Note that the URLs come from the Google Web crawl page.
Have been experimenting but I really am getting lost on this one. One of my latest attempts produces a server error and prevents me from viewing any pages... Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^property/66RCG/floorplan.html http://www.steinbeck-reeves.co.uk/index.html [R301.L] RewriteRule ^Bathrooms.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/Bathrooms.html [R=301.L] # Redirect 301 /Bathrooms.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/Bathrooms.html Redirect 301 /Case_studies.html%20changefreq=monthly%20priority=0.7 http://www.steinbeck-reeves.co.uk/Case_studies.html Redirect 301 /Contact.html%20changefreq=monthly%20priority=0.5 http://www.steinbeck-reeves.co.uk/Contact.html Redirect 301 /Design.html%20changefreq=monthly%20priority=0.8 http://www.steinbeck-reeves.co.uk/Design.html Redirect 301 /Developers.html%20changefreq=monthly%20priority=0.8 http://www.steinbeck-reeves.co.uk/Developers.html Redirect 301 /Gallery.html%20changefreq=monthly%20priority=0.7 http://www.steinbeck-reeves.co.uk/Gallery.html # Redirect 301 /property/66RCG/floorplan.html http://www.steinbeck-reeves.co.uk/index.html Redirect 301 /Inspirations.html%20changefreq=monthly%20priority=0.4 http://www.steinbeck-reeves.co.uk/Inspirations.html Redirect 301 /Kitchens.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/Kitchens.html Redirect 301 Links.html%20changefreq=monthly%20priority=0.1 http://www.steinbeck-reeves.co.uk/Links.html Redirect 301 /Terms.html%20changefreq=monthly%20priority=0.0 http://www.steinbeck-reeves.co.uk/Terms.html Redirect 301 index.html%20changefreq=monthly%20priority=0.0 http://www.steinbeck-reeves.co.uk/index.html Redirect 301 /main.html%20changefreq=monthly%20priority=1.0 http://www.steinbeck-reeves.co.uk/index.html ErrorDocument 404 http://www.steinbeck-reeves.co.uk/index.html Code (markup): Can someone please point me in the right direction? Thanks, Michael