homepage Welcome to WebmasterWorld Guest from 54.204.59.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Prevent viewing of .htaccess file
optimierung




msg:3979943
 9:42 am on Aug 28, 2009 (gmt 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

 

jdMorgan




msg:3980019
 1:55 pm on Aug 28, 2009 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved