View Single Post

  #1 (permalink)  
Old 06-03-2008, 01:48 PM
mumuri mumuri is offline
Junior Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 11
Rep Power: 0
mumuri is on a distinguished road
Default Lighttpd URL Redirection domain.com/dir1/index.html to domain.com/dir1

hello

how can we redirect a page like

Code:
http://nixcraft.com/web-servers/index.html
to

Code:
http://nixcraft.com/web-servers/
with lighttpd ?

thanks in advance

i tried a
Code:
url.rewrite-once = (
         "^/[a-zA-Z0-9-]+\/index\.html$" => "$1"
)
but it doesn't seem to work
PS :rewrite is on

Last edited by mumuri; 06-03-2008 at 06:48 PM..
Reply With Quote