Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
RE: d
All files from this thread
File Name
File Size
Posted by
Date
2.1 KB
open
|
download
Akins, Brian
08/05/2011
Read message
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
Akins, Brian
August 05, 2011 08:00AM
Use a map :
map $uri $new_url {
defau;t 0;
/old/url /new/url
/1 /new/1;
}
then in your server config:
if ($new_url) {
rewrite ^ $new_url permanent;
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Reply
Quote
Attachments:
open
|
download
- (2.1 KB)
RSS
Subject
Author
Posted
d
zflairz
August 04, 2011 11:50PM
Re: d
David J
August 05, 2011 12:56AM
RE: d
Akins, Brian
August 05, 2011 08:00AM
Re: RE: d
zflairz
August 05, 2011 09:09AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 393
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018