I need to add a trailing slash (/) to urls in lighttpd. I tested this :
url.redirect = ( "^(.*)$" => "$1/")
but this adds a lot of slashes at the end. Any help would be highly appreciated.
I need to add a trailing slash (/) to urls in lighttpd. I tested this :
url.redirect = ( "^(.*)$" => "$1/")
but this adds a lot of slashes at the end. Any help would be highly appreciated.
Ya, as Ansari said, you would need something like this.
(Currently, I was doing the same...)
$SERVER["socket"] == "xxx.xxx.xxx.xxx:xx" { url.redirect = ("^(.*[^/])$" => "$1/") }
This would put / in the end of URL.