Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Prevent viewing of .htaccess file

     
9:42 am on Aug 28, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:July 15, 2006
posts: 78
votes: 0


Can anyone please clear the following question:

If I use in the htaccess file the following code to prevent viewing the htaccess file

<Files .htaccess>
order allow,deny
deny from all
</Files>

will this also have effect on search engine spiders e.g. "reading redirect commands"?

Thanks in advance

1:55 pm on Aug 28, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


No, because the .htaccess file is not "called" by using a URL, it is invoked automatically as part of the server's URL-to-filename translation process.

Your code *will* prevent anyone using HTTP to examine your .htaccess file, including search engines. But search engines don't need to download that file or examine it, because it is used only by your server itself.

Jim

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members