I have this incoming link from Facebook,
but this yields a 404 from Lighttpd.
Desired end-result is: http://fatstone.tv/portfolio/10-firsts-of-wingsuiting/
I've tried
$HTTP["url"] =~ "fb_action_ids" {
url.redirect = (
"^/(.*)" => "/$1"
)
}
and
url.rewrite = (
"^/(.*)\.(.+)$" => "$0",
"^/(.+)/?$" => "/$1"
)
to no avail.
Can someone please help me out with the regex!? I don't have any url's that need /? arguments
, so a regex to just slice the url starting with the ?
would be sufficient, I think.
Try this pattern: ^(.+)\?.*$
(and simply replace with $1)
Note that this will not match URLs that are already formatted the way you want. I'm not sure if that's a problem or something you want.