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)

Re: [HOW TO] - Setting up mod rewrite on lighttpd

Thanks any0n3!

Re: [HOW TO] - Setting up mod rewrite on lighttpd

any0n3 wrote:

That was it, quite easy or? ;-)

Thanks for grabbing me under the arms, but I has to say you that your english is like a beef wurst.

I think I spider! I hold it in the head not out!

Re: [HOW TO] - Setting up mod rewrite on lighttpd

I use often expressions of my country in my english that sucks I know :-P.

I has

I have! yikes