Covert mod-rewrite to lighttpd for lessn url shortener

Posted by JonKratz on Server Fault See other posts from Server Fault or by JonKratz
Published on 2011-06-26T20:49:53Z Indexed on 2011/06/27 0:24 UTC
Read the original article Hit count: 531

Filed under:
|
|

I am trying to use lessn, a url shortener by Shaun Inman, on my lighttpd server and he uses a .htaccess file for the redirect. I am not very good with Mod_Rewrite isn the first place otherwise some simple googling would have sufficed to convert this for lighttpd. As it is, I do not know what the 2nd and 3rd lines of the Mod_Rewrite are doing, so I cannot convert. I'd appreciate anyone's advice on those so I can have it working as it should. Thank you!

<IfModule mod_rewrite.c>
    RewriteEngine   on
    RewriteCond     %{REQUEST_FILENAME}     !-d
    RewriteCond     %{REQUEST_FILENAME}     !-f
    RewriteRule     (.*) index.php?token=$1 [QSA,L]
</IfModule>

© Server Fault or respective owner

Related posts about .htaccess

Related posts about mod-rewrite