You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On one of the servers I have set up Tonic on, I needed to add this to .htaccess:
RewriteBase /~kenyn/tonic
Without that line, Apache was expanding the /~kenyn/tonic/ part of URLs to /home/kenyn/public_html/tonic/dispatch.php/ and giving me a 404 Not Found error.
The text was updated successfully, but these errors were encountered:
@KenYN I'm curious what your tonic Application options looks like. Are you passing baseUri, mount, are you passing an explicit uri? Have you taken a look at this https://github.com/peej/tonic/blob/master/src/Tonic/Request.php#L185-L197 you can see if not passing an explicit uri to options, it first uses apache's REDIRECT_URL, which is set by mod_rewrite, and other ways. For instance, I am running php through cgi, and using mod_rewrite. So my version of REDIRECT_URL is always incorrect. To get around this, I just pass 'uri' => parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), explicitly as an option.
I tried setting my RewriteBase in .htaccess like you, but doesn't seem to have any effect for cgi. What I am doing is fine, but just curious if you had any suggestions?
On one of the servers I have set up Tonic on, I needed to add this to
.htaccess
:Without that line, Apache was expanding the
/~kenyn/tonic/
part of URLs to/home/kenyn/public_html/tonic/dispatch.php/
and giving me a 404 Not Found error.The text was updated successfully, but these errors were encountered: