Nginx & htaccess code

EzGenerator V4 forum

Return to “Ezgenerator v4 Customer Forum”

[You can only see part of this thread as you are not logged in to the forums]
jeremy54
Tue Aug 26, 2014 11:43 pm

x

Nginx & htaccess code

Hi,

I have a problem concerning my shop. I would like to make appear the category and the title in the URLs of my shop, but I use nginx and don't know how I can implant the code because this server doesn't support .htaccess.

I found a website to translate the following code :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /nos-produits-bio/
RewriteRule ^boutique\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /nos-produits-bio/boutique.php [L]
</IfModule>

For nginx, it would be :

# nginx configuration
location /nos-produits-bio/ {
if (!-e $request_filename){
rewrite ^/nos-produits-bio/(.*)$ /nos-produits-bio/nos-produits-bio/boutique.php break;
}
}

Could you please advise me what to do because I must confess, I am totally lost.
Thank you :)

miro (staff)
Site Admin
Wed Aug 27, 2014 12:40 pm

x

Re: Nginx & htaccess code

hi i never worked with nginx, but i assume you...

jeremy54
Sat Aug 30, 2014 11:53 pm

x

Re: Nginx & htaccess code

Hi, I tried following code to replace htaccess...

miro (staff)
Site Admin
Mon Sep 01, 2014 7:05 am

x

Re: Nginx & htaccess code

hi sorry, but i have no experience (and no way...


Return to “Ezgenerator v4 Customer Forum”