404 on Prestashop 1.5 under nginx
    David B. 
    lists at ruby-forum.com
       
    Tue Aug 12 10:13:52 UTC 2014
    
    
  
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/.
    
    
More information about the nginx
mailing list