Created
February 8, 2012 17:00
-
-
Save aabril/1771052 to your computer and use it in GitHub Desktop.
nginx rewrite configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # nginx configuration | |
| # any access to http://myurl.com/new/blablabla has to load http://myurl.com/old/blablabla without change url | |
| # this is redirecting and changing the url | |
| location ^~ /new/ { | |
| rewrite ^/new/(.*)$ /old/$1 permanent; | |
| } | |
| # how to make the same redirection without change the url? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is more in line with the Nginx way of doing things.