Project

General

Profile

[UE] PrestaShop .htaccess Transform

Added by LuigiMdg 2 months ago

Salutations,
I am trying to transfer my PrestaShop ecommerce from LiteSpeed to Lighttpd but I don't find recent suggestions on how to transform the .htaccess file, so I decided to do it manually and solved for the images, however for example the price does not update when I select a size different..

This is a video demonstration:
[[https://screenrec.com/share/9O5iUvm3Rp]]

If anyone would like to help me, you can view the site by entering in your hosts file:
75.119.138.42 adesivimoto.eu

Operating System (OS) you are using (Linux (which distro?), FreeBSD, Solaris, etc.) + version
CentOS Linux release 7.9.2009
Version of lighttpd: lighttpd -v
lighttpd/1.4.54 (ssl) - a light and fast webserver
Configuration you are using

Replies (5)

RE: PrestaShop .htaccess Transform - Added by LuigiMdg 2 months ago

Scuse me, this is the corrected configuration file:
[[https://paste.lighttpd.net/O9#EZTz2u192HWdzOBuNmMpmAyo]]

RE: PrestaShop .htaccess Transform - Added by gstrauss 2 months ago

You have not shared the .htaccess you are converting.
You have not detailed what problems you are having, besides the vague "however for example the price does not update when I select a size different". This is not PrestaShop support, and there might be nobody else who has ever run PrestaShop here, so please do not make any assumptions that anyone here knows anything about PrestaShop, or that anyone here has a test environment for PrestaShop.

Please read the doc for htaccess-like functionality in lighttpd
If you have many complex rewrite rules, you might consider the option to implement .htaccess using mod_magnet and lua scripts.

RE: PrestaShop .htaccess Transform - Added by gstrauss 2 months ago

In all of your cutting and pasting between https://paste.lighttpd.net/N9#XDF6L1wz6qI8HnMNXqxKWdIV and https://paste.lighttpd.net/O9#EZTz2u192HWdzOBuNmMpmAyo, it appears that you did not properly create rules for both .jpg and .webp, and you also incorrectly mixed .jpg and .webp match-rules and targets

RE: [UE] PrestaShop .htaccess Transform - Added by LuigiMdg 2 months ago

Thanks for the quick replies, as for the images, those work fine, price updates don't work, so JSON calls, add to cart, etc..

More than anything else I don't know how to debug Lighttpd, in the error log I don't find anything registered..!

This is the old .htaccess.. I know the image rules were mixed but then I corrected them in lighttpd.conf.
[[https://paste.lighttpd.net/P9#BX3pyHMjMyIbUemk4gl9WrMv]]

RE: [UE] PrestaShop .htaccess Transform - Added by LuigiMdg 2 months ago

However, I have another server with 5 websites (WordPress, PhpBB, etc.) and they work perfectly with the adapted rules, on PrestaShop it is perhaps more problematic because it uses multiple .htaccess in the various folders with the Order Allow/Deny rules ?

    (1-5/5)