Topic: [HOW TO] - Setting up mod rewrite on lighttpd
Setting up mod rewrite on lighttpd is as easy as on apache2.
You need access to your vhosting file of your domain.
1. load the module "mod_rewrite", simply add it in the server.modules section.
2. Locate your vhost and add into the host section the following code
url.rewrite-once = (
"^(.*)\/([0-9]+)\/(.*)\.html$" => "/post.php?idpost=$2 [L]"
)This is compatible to all NibbleBlog rewrite directives.
Now you should restart your lighttpd or reload it.
That was it, quite easy or? ;-)
For example > http://irony.at/ :-)
Last edited by any0n3 (03-05-2010 12:46:35)