Procédure
We recently updated our VPS offerings to include an ISPconfig package running on the Nginx web server instead ofApache. The choice was based on the fact that it is light and fast.
However, once we had implemented it with a Prestashop shop, we came up against one of Nginx's limitations: the fact that it doesn't support .htaccess files.
As a result, you can't activate the"simplified URLs" function from your back office, as you could with Apache.
Let's take a look at how to remedy this problem.
The first thing to do is to get hold of your SSH identifiers(How to connect as root on a dedicated VPS server) and connect to your VPS.
Edit the file /etc/nginx/sites-available/my_site
nano /etc/nginx/sites-available/my_site.com.vhost
Then add the following lines between the"server {}" tags:
To do this, simply use the command :
/etc/init.d/nginx restart
Activate the"Simplified URLs" function from your Prestaphop backoffice(Preferences => SEO & URLs):
In your browser the URL: http: //mon_site.com/index.php?id_product=4&controller=product
becomes: http: //mon_site.com/robes-soiree/4-robe-imprimee.html
URL rewriting works well.
Léo, our assistant, answers you straight away based on our articles.
Our technical support team handles your request by ticket, from your customer area.
Open a ticket