Jump to content

.htaccess file - what should it have in it?


Recommended Posts

Hi guys

 

I'm trying to understand the .htaccess file and what it should contain.

 

There appears to be an .htaccess file in the "prestashop" folder and a few other folders such as:

 

prestashop/admin/import

prestashop/admin/export

prestashop/admin/backups

 

 

Currently the "prestashop/.htaccess file is empty (does not contain anything) and the others have the following:

 

Order deny,allow
Deny from all

 

Can somebody please tell me what they should contain if its different from what I already have?

 

 

Link to comment
Share on other sites

Ok, here's the latest update.

 

I have been doing some more testing trying to figure out what is happening.

 

After reading various posts etc, I decided to delete the .htaccess in the root and also the .htaccess in the "prestashop" folder with the understanding that Prestashop would recreate it once I started the back office.

 

Well, it does not seem to happen that wahy.

 

After deleting the .htaccess files, I started the BO and was presented with the Login form, so far so good.

 

I entered my login details and pressed Enter and received the following screen as per the attached screen shot.

 

After a few more tries, I managed to get into the BO.

 

I then went into "preferences/seo&urls" and "saved" and "generated" everything.

 

So far so good.

 

When I start the shop from the BO, it also displays the same error message a the top of the screen.

 

Any suggestion would be greatly appreciated.

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...