Jump to content

Prestashop 1.7.3.4 - Friendly URL


Recommended Posts

Hello there! :)

I'm running PS 1.7.3.4 on ubuntu 16.04.4 x64 with LAMP (php 7.1) 

I've enabled friendly URL after the installation of my shop. From index.php it then changed to /en/ yielding in 

Not Found

The requested URL /en/ was not found on this server.

rewrite is enabled and active. The .htaccess reads 

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on

 

I've regenerated the .htaccess by deleting the old one and enabling / disabling friendly urls. I'm utterly confused. 

 

I solved the problem by adding the Allowoverride All directive to /etc/apache2/apache2.conf

<Directory /var/www/prestashop/>
        Options Indexes FollowSymLinks
        AllowOverride All
</Directory>
Edited by Apury (see edit history)
Link to comment
Share on other sites

  • 2 years later...
On 7/1/2018 at 9:33 PM, Apury said:

I've enabled friendly URL after the installation of my shop. From index.php it then changed to /en/ yielding in 

Not Found

I solved the problem by adding the Allowoverride All directive to /etc/apache2/apache2.conf


<Directory /var/www/prestashop/>
        Options Indexes FollowSymLinks
        AllowOverride All
</Directory>

Yes, this solved my problem as well.

Additionally, you will also have to enable mod_filter; otherwise you will get the error:

.../.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

In Ubuntu just run:

a2enmod filter

 

Thanks for posting this.

 

Best regards

Josef

Edited by jmeile (see edit history)
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...