strange redirect behaviour for canonical url in lighttpd
- Christoph Mathys
- 2013-04-30 @ 09:17
I have setup a small webapplication with lighttpd according to the examples
on the flask page.
I want the application to run on /V1 and my rewrite rule looks as follows:
"^(/V1/.*)$" => "/mydispatcher.fcgi$1",
Now inside the app I have @route('/V1/app1/'). If I access this URL with or
without trailing slash through the embedded webserver, /V1/app1 gets
redirected to /V1/app1/ as expected. If I do the same through lighttpd, the
redirect is done to /mydispatcher.fcgi/V1/app1/. What can I do about it?
My current workaround is to have another rewrite rule, which redirects the
url without trailing slash to an url that has one.