Reputation: 35
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.
Upvotes: 0
Views: 1676
Reputation: 548
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.
Upvotes: 0