getkirby-v2 / starterkit

This is the deprecated starterkit for Kirby v2.
http://getkirby.com
Other
301 stars 94 forks source link

.htaccess rewrite rule for /kirby and /site folders reveals file system path #39

Closed frankrausch closed 9 years ago

frankrausch commented 9 years ago

Navigating to the /kirby and /site folders correctly shows the error page but appends file system location to the URL, for example:

$ curl -I example.dev/kirby/ HTTP/1.1 301 Moved Permanently … Location: http://starterkit.dev/Users/username/www/starterkit/error

I can reproduce this behavior on Apache, both locally and on a Host Europe virtual server.

I fixed it by changing: RewriteRule ^kirby/(.) error [R=301,L] to RewriteRule ^kirby/(.) /error [R=301,L] … but that would obviously break installing kirby in a subfolder.

bastianallgeier commented 9 years ago

This is solved with the latest rules.