Reputation: 689
I want to convert the following .htaccess
rules to lighttpd rewrite rules
RewriteEngine On
RewriteRule ^images/.*$ index.php
RewriteCond %{REQUEST_URI} !(^/_)|(error\.html)$ [NC]
RewriteRule ^.*$ index.php
I don't have experience with lighttpd, but I need to start script on lighttpd server. How do I convert these rules andwhere do I need to place them so the script works?
Upvotes: 0
Views: 95
Reputation: 689
Solved by this:
#/mnt/sdcard/pws/rewrite.conf
# rewrite rules
url.rewrite-if-not-file += (
"^images/.*$" => "index.php",
"^([^\?]+)(?:\?(.*))$" => "index.php?_route_=$1&$2",
"^.*$" => "index.php"
)
# //rewrite rules
Upvotes: 1