Htaccess Problem and Robot text problem

1 replies
Having trouble with Webmaster tools giving me some errors. I had 100 errors found in Webmaster tools that were all 404 errors. Not sure if my htaccess file is done right and I need to make sure it is.

Errors were because of index.html file is this correct:

Code:
#Redirect 301 /index.html http://www.the-best-web-hosting-service.com/index.php
Also, was trying to get my blog which is in a folder to redirect to http://www. instead of the one without the www

My robot text needs to ignore files in the /recommended folder too. I don't think my robot file is done correctly .

Please help lost 110 of my top rankings!
#htaccess #problem #robot #text
  • Profile picture of the author dereksemmler
    With regard to your redirect, you need to remove the "#" character as this designates the line as a comment and is ignored for processing. Otherwise your command is syntactically correct.

    For the 2nd question about redirecting to the "www" version of your domain, do you want to do that for all links or just the blog? Here is the code to add to your .htaccess to accomplish redirecting links to the "www" version of your domain:

    Sorry, I had nothing but problems trying to post the code since I am not allowed to post links yet and it was parsing the code sample and catching the link. To see how to do this, go to Google and enter the following search term: "htaccess redirect to www". The first result should have a good example that you can use.

    For the robots.txt file to ignore the "recommended" folder, you would want to have this command in the file:

    Code:
    Disallow: /recommended/
    Hope that helps!

    Thanks,
    Derek
    Signature

    Dad, can we...
    :: Being a better dad (or mom) for your kids (Kindle book)
    {{ DiscussionBoard.errors[3148583].message }}

Trending Topics