Welcome! Log In Create A New Profile

Advanced

Re: 404 on Prestashop 1.5 under nginx

David B.
August 12, 2014 08:12AM
Hi,

Here is the right solution. you should not set all redirection in nginx
configuration server section as some proposed. you'll have to modify the
file each time you want to add a url redirection.

To make it nice :

You shoud 1st modify the pool of php-fpm,

env[HTTP_MOD_REWRITE] = "on"

This is the variable expected by Prestashop to test if rewrite is
enabled

Next in nginx server section add :

location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}

Now when an url is passing, it will try 1st to resolv, if not exist,
then will try as forder, if not it will pass it to the main controler,
if an url rewrited exist it will call the right controller.

Regards

David

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

404 on Prestashop 1.5 under nginx

tonimarmol May 28, 2013 06:52AM

Re: 404 on Prestashop 1.5 under nginx

tonimarmol May 28, 2013 09:13AM

Re: 404 on Prestashop 1.5 under nginx

DivisionX August 10, 2013 07:09PM

Re: 404 on Prestashop 1.5 under nginx

tonimarmol October 08, 2013 09:39AM

Re: 404 on Prestashop 1.5 under nginx

Dougadan March 27, 2014 07:12AM

Re: 404 on Prestashop 1.5 under nginx

tonimarmol March 27, 2014 07:22AM

Re: 404 on Prestashop 1.5 under nginx

Dougadan March 27, 2014 07:57AM

Re: 404 on Prestashop 1.5 under nginx

tonimarmol March 27, 2014 08:15AM

Re: 404 on Prestashop 1.5 under nginx

Dougadan March 27, 2014 10:08AM

Re: 404 on Prestashop 1.5 under nginx

lmwood October 08, 2013 07:09AM

Re: 404 on Prestashop 1.5 under nginx

tonimarmol October 08, 2013 09:39AM

Re: 404 on Prestashop 1.5 under nginx

David B. August 12, 2014 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready