Jump to content

AllowOverride for website directory


Recommended Posts

Hello. I have installed Prestashop but only the admin page works.

The shop page makes a lot of redirects.

I wonder if there is a problem with apache conf file.

In the virtual host file I added this during install:

        <Directory /var/www/24sjuhandel>
                AllowOverride All
                Options +Indexes
                Require all granted
        </Directory>

Is it wrong?

Greetings

Link to comment
Share on other sites

I could solve my problem, that circled around SSL. At one point I had fixed SSL (Let's encrypt) for the site. At another point I had installed Prestashop. I don't remember in which order though, probably shop first. When I finally looked in the database - table ps_configuration - I found the line "PS_SSL_ENABLED" that had value 0 ... so I updated that and a similar line with the query:

UPDATE ps_configuration SET value = 1 where name like '%_SSL_%';

This set the PS_SSL_ENABLED and PS_SSL_ENABLED_EVERYWHERE to 1.

That was it.

Link to comment
Share on other sites

Actually, friendly url worked after I altered apache2.conf, the section/directory /var/www/

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

AllowOverride made the friedly url work. I use Ubuntu 18, Apache2, mysql, PS 1.7.7.4, a fresh install.

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...