I've put a .htaccess file in my main directory of my lighttpd website like this:
url.rewrite-once = (
"^/cat.php$" => "index.php"
)
And I have enabled mod_rewrite and mod_redirect in my lighttpd.conf and restarted lighttpd server.
But unfortunately when i type mydomain/cat.php i got error page 404.
I've found that in Apache there is necessery to write:
<Directory />
AllowOverride All
</Directory>
In config file. But I can not find equivalent of this setting for Lighttpd. What is this?