Linux / UNIX Tech Support Forum
This is a discussion on Lighttpd URL Redirection domain.com/dir1/index.html to domain.com/dir1 within the Web servers forums, part of the Mastering Servers category; 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 ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hello
how can we redirect a page like Code:
http://nixcraft.com/web-servers/index.html Code:
http://nixcraft.com/web-servers/ thanks in advance i tried a Code:
url.rewrite-once = (
"^/[a-zA-Z0-9-]+\/index\.html$" => "$1"
)
PS :rewrite is on Last edited by mumuri; 06-03-2008 at 06:48 PM. |
| Sponsored Links | ||
|
|
|
||||
|
You need to use url.redirection as follows:
Code:
url.redirect = ( "^/([a-zA-Z0-9]+)/index\.html$" => "%1/$1" )
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| clean urls , lighttpd , lighttpd seo , mod_redirect , mod_rewrite , seo |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk - Removing domain name entires | nvbhole | Shell scripting | 0 | 12-18-2007 12:14 PM |
| wi-fi connection and Domain login on windows | surmandal | Computer Networking and Internet/broadband | 2 | 08-03-2007 07:51 PM |
| Masquerade domain sendmail how to | chiku | Mail Servers | 2 | 07-10-2007 09:20 AM |
| lighttpd domain and subdomain settings | muks | Web servers | 4 | 03-08-2007 07:39 PM |
| Help, samba 3.0.23 join ads domain | warren | Linux software | 1 | 01-09-2007 04:41 PM |