Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL rewriting - Apache syntax errors #4

Closed
jamesvl opened this issue Apr 8, 2011 · 1 comment
Closed

URL rewriting - Apache syntax errors #4

jamesvl opened this issue Apr 8, 2011 · 1 comment

Comments

@jamesvl
Copy link

jamesvl commented Apr 8, 2011

If I put the Apache portion of your URL rewriting example in an .htaccess file, the Apache will fail to load that directory because it expects spaces after {REQUEST_FILENAME}.

Also, the RewriteRule which directs to /index.php is incorrect if the app in question is in a subdirectory and not the server's root.

See possible fixes at https://gist.github.com/910325

@chriso
Copy link
Contributor

chriso commented Apr 10, 2011

Thanks James - I've updated the Gist. This was a great read. I haven't used nginx extensively so learnt a lot, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants