Answer the question
In order to leave comments, you need to log in
How to convert htaccess rewrite rules to lighttpd?
Good afternoon.
I faced the task of quickly porting the site from the Apache host to lighttpd.
The first, of course, with which the question arose - the rules of rewriting.
I can't convert this htaccess correctly
RewriteEngine On
RewriteRule ^images/.*$ index.php
RewriteCond %{REQUEST_URI} !(^/_)|(error\.html)$ [NC]
RewriteRule ^.*$ index.php
url.rewrite-if-not-file += (
"^images/.*$" => index.php,
"^.*$" => index.php,
)
$arr_request = explode('/',$_SERVER['REQUEST_URI']);
if ($arr_request[1] == 'status' && isset($_POST['ajax'])) {
//.. и тут соответствующий инклуд
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question