1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Mod rewrite .htaccess to lighttpd

Discussion in 'Apache' started by anniyan07, Dec 20, 2011.

  1. #1
    Guys how to write this on lighttpd config?

    RewriteEngine On
    RewriteRule ^/admin /admin [L]
    RewriteRule ^/?watch/([a-z0-9-/]+)$ index.php?menu=watchmovie&perma=$1 [L]
    RewriteRule ^/?([a-z0-9-/]+)\.html$ index.php?menu=$1 [L]
    RewriteRule ^/?pages/([a-z0-9-/]+) index.php?menu=page&permalink=$1 [L]
    RewriteRule ^/?movies index.php?menu=movies [L]
    RewriteRule ^/?tv-shows index.php?menu=tv-shows [L]
    RewriteRule ^/?home index.php?menu=home [L]
    RewriteRule ^/?([a-zA-Z0-9-]+)/season/([0-9]+)/episode/([0-9]+)$ index.php?menu=episode&perma=$1&season=$2&episode=$3 [L]
    RewriteRule ^/?([a-zA-Z0-9-]+)/season/([0-9]+)$ index.php?menu=show&perma=$1&season=$2 [L]
    RewriteRule ^/?([a-zA-Z0-9-]+)$ index.php?menu=show&perma=$1 [L]

    Thanks In Advance.
    anniyan07, Dec 20, 2011 IP