Jump to content
Sign in to follow this  
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...