How to have friendly URLs (.htaccess in apache) with Lighttpd?

0

I have this .htaccess file:

(#)impedir que se pueda ver el listado de contenidos de un directorio
Options All -Indexes
(#)URL amigables
(#)activar RewriteEngine
RewriteEngine on
RewriteRule ^(\w+)$ index.php?accion=$1
RewriteRule ^(.*)&(.*)=(.*)$ index.php?accion=$1&$2=$3'

and I would like to know how to adapt it to the Lighttpd server.

    
asked by Angel Zambrano 11.11.2017 в 00:09
source

1 answer

0

Reading a little on the documentation , the rules you posted would translate to:

url.rewrite-once = (
    "^/([^?]+)\?([^=&]+=[^=&]+)" => "/index.php?accion=$1&$2",
    "^/(\w+)$" => "/index.php?accion=$1"
)
    
answered by 11.11.2017 в 01:57