Search the Community
Showing results for tags 'lighttpd'.
-
Not much help to find if youre migrating prestashop to lighttpd. Worst part for me was migrating the rewrite rules and "deny" mod_access rules from .htaccess files to lighttpd.conf file Thats why I'm sharing my files on github here: https://github.com/michaelhjulskov/apache_to_lighttpd Feel free to add .htaccess files that isnt there Feel free to copy rewrite rules from lighttpd.conf file Please leave a comment below, if you find this usefull. And please contrib if you have further knowledge to add. Why move to lighttpd: moving to lighttpd made my prestashop faster.
-
The store is running in prestashop 1.4.9 and in lighttpd server. In order to pass google's mobile friendly test we installed mobile template 0.5.3 module for version 1.4.x as proposed. So when browse it from a mobile device you see the mobile version of the site www.shopbay.gr/el/?ps_mobile_site=1 and while you browse it from a desktop PC you see the normal version www.shopbay.gr/el/?ps_full_site=1 The problem is because we are using friendly url rewriting and we have lighttpd server most of the website urls doesn't working now and return 404 error Does anybody face the same issue? Does anybody know how to ammend the Url rewriting rules in order to make the new websites urls working Actually all the website urls are the same like before with the addtion of the suffix ?ps_mobile_site=1 for mobile and ?ps_full_site=1 for desctop pc but is is mean that we have to modify the rewriting rules from the start now
-
- lighttpd
- mobile template module
-
(and 1 more)
Tagged with:
-
I have been trying to get URL rewrite working on lighttpd for days, nothing that other users posted worked, but I FINALLY got it. Put the following in your lighttpd.conf at the bottom if you dont have any vhosts but if u have vhosts put it inside the vhost statement. url.rewrite-once = ( "^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2$3.jpg", "^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$" => "/img/c/$1$2.jpg", "^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1-$2.jpg", "^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$1$2.jpg", "^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$1$2$3.jpg", "^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$1$2$3$4.jpg", "^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg", "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg", "^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$" => "/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg", "^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?" => "/product.php?id_product=$3&isolang;=$1$6" , "^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?" =>"/product.php?id_product=$2&isolang;=$1&$4", "^/lang-([a-z]{2})/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?" =>"/cms.php?id_cms=$2&isolang;=$1&$4", "^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?" =>"/category.php?id_category=$2&isolang;=$1&$5" , "^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?" => "/product.php?id_product=$2&$5" , "^/([0-9]+)\-([a-zA-Z0-9-]*)\.html(\?(.*))?" =>"/product.php?id_product=$1&$4", "^/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?" =>"/category.php?id_category=$1&$4" , "^/content/([0-9]+)\-([a-zA-Z0-9-]*)(\?(.*))?" =>"/cms.php?id_cms=$1&$4" , "^/([0-9]+)__([a-zA-Z0-9-]*)(\?(.*))?" =>"/supplier.php?id_supplier=$1&$4" , "^/([0-9]+)_([a-zA-Z0-9-]*)(\?(.*))?" =>"/manufacturer.php?id_manufacturer=$1&$4", "^/lang-([a-z]{2})/(\?(.*))?" => "/index.php?isolang=$1&$2" )