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
Nginx & htaccess code
Return to “Ezgenerator v4 Customer Forum”
[You can only see part of this thread as you are not logged in to the forums]
-
- Site Admin
- Wed Aug 27, 2014 12:40 pm
Re: Nginx & htaccess code
hi
i never worked with nginx, but i assume you...
Re: Nginx & htaccess code
Hi,
I tried following code to replace htaccess...
-
- Site Admin
- Mon Sep 01, 2014 7:05 am
Re: Nginx & htaccess code
hi
sorry, but i have no experience (and no way...