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

Fixed redirect for localhost in option 2 rewrite #152

Closed
wants to merge 1 commit into from

Conversation

rwblackburn
Copy link
Contributor

In the .htaccess file option 2 rewrite rules, which prepends "www." to
URLs, could break applications running on a local environment. If
option 2 was enabled, http://localhost or http://127.0.0.1 would
redirect to http://www.localhost or http://www.127.0.0.1 which caused
an error and prevents the app from being tested locally. Added
exceptions to the rewrite conditions to prevent this.

In the .htaccess file option 2 rewrite rules, which prepends "www." to
URLs, could break applications running on a local environment. If
option 2 was enabled, http://localhost or http://127.0.0.1 would
redirect to http://www.localhost or http://www.127.0.0.1 which caused
an error and prevents the app from being tested locally. Added
exceptions to the rewrite conditions to prevent this.
@alrra alrra closed this in e7ad187 Jun 7, 2013
@alrra
Copy link
Member

alrra commented Jun 7, 2013

Thanks @rwblackburn!

alrra pushed a commit that referenced this pull request Jun 27, 2013
Add `localhost` and `127.0.0.1` exceptions to the rewrite rule condi-
tions that prepend `www.` to URLs, as the current rules prevent users
from being able to test locally.

Closes #152.
alrra pushed a commit to h5bp/server-configs-apache that referenced this pull request Jul 26, 2013
Add `localhost` and `127.0.0.1` exceptions to the rewrite rule condi-
tions that prepend `www.` to URLs, as the current rules prevent users
from being able to test locally.

Closes h5bp/server-configs#152.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants