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

Alternative .htaccess code #76

Closed
SamM opened this issue Feb 5, 2014 · 3 comments
Closed

Alternative .htaccess code #76

SamM opened this issue Feb 5, 2014 · 3 comments

Comments

@SamM
Copy link

SamM commented Feb 5, 2014

I'm using Apache version 2.2.24 and for some reason neither of the two snippets of code that you posted to use in my .htaccess were working properly. On another server (Apache 2.2.19) the "FallbackResource /index.php" worked perfectly, but it didn't work well on my server.

Here's the code I found that worked for on my server:

RewriteBase /INSERT/PATH/TO/BASE/DIRECTORY
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php)
RewriteRule .* index.php/$0 [L]

Without the RewriteBase all I got was a 404 error ".../index.php/ was not found".

@codazoda
Copy link

This is probably related to the issue I just posted [https://github.com//issues/78]. This might be a better fix than removing the code I suggested. I'm about to test it and will report back.

@codazoda
Copy link

As a follow-up, this rewrite rule is better than the alternative I found but it does not fix bug [https://github.com//issues/78].

@codazoda
Copy link

I added documentation to the readme with this alternative and submitted pull request [https://github.com//pull/79]. This is my first pull request for this project so feel free to slap me if I did something wrong.

Repository owner deleted a comment from uc-Pri Mar 4, 2024
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

3 participants