Rate this article :
5/5 | 1 opinion
This article was useful to you ?
Yes
No
Vous avez noté 0 étoile(s)
Sommaire
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.
Rate this article :
5/5 | 1 opinion
This article was useful to you ?
Yes
No
3mn reading
How do I access ISPConfig on my dedicated VPS server?
0mn reading
How do I create a DNS server in ISPConfig on a dedicated VPS server?
0mn reading
How do I change the ISPConfig 3 panel password?
1mn reading
How can I secure access to my ISPconfig panel using an .htaccess file?