Jump to content

Archived

This topic is now archived and is closed to further replies.

fairtomidland

.htaccess file

Recommended Posts

I have upgraded so many times my .htaccess file has some code that shows up in my hosting control panel showing that it is blocking all ip addresses. I am just trying to get the proper code that should be in the 5.07 version. Here is the code:

## File Security

<FilesMatch "\.(htaccess)$">

Order Allow,Deny

Deny from all

</FilesMatch>

Is this cubecart's code?

Share this post


Link to post
Share on other sites

The default contents of the .htaccess file is found here:

adminsourcessettingsseo-htaccess.txt

Sorry, I am no expert on .htaccess coding, but it seems to me that this first ruleset is to prevent anyone from directly accessing any file that ends in .htaccess. But I have the understanding that web servers are not suppose to answer requests for files that start with a period anyway. I could be wrong about that.

Share this post


Link to post
Share on other sites

×
×
  • Create New...