cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

<basePath>/de/ rewrites to /de #85

Closed cbleek closed 8 years ago

cbleek commented 9 years ago

http://yawik.org/demo/de/ is redirected to http://yawik.org/de

The rewrite ist propably done because of the default ZF2 .htaccess in the public directory

RewriteRule ^(.*)/$ /$1 [R=301,L]

The Demo is using the apache directive

Alias /demo //public

The rewrite_log starts with ...rid#7f8cef69b0a0/initial [perdir /] strip per-dir prefix: /de -> de

So it propably an apache problem.

TiSiE commented 9 years ago

Maybe it helps setting the RewriteBase directive?

http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase

mbo-s commented 9 years ago

This is an apache issue: if you use Alias you must set the RewriteBase. For a safer way this should be handeld by the buildscript. There are more issues, if yawik does not run in the rootdir: The captcha-image-dir points to /captcha and not to /yawikdir/captcha

cbleek commented 8 years ago

so we can close this issue