nginx | Page Redirect from OLD URL to NEW URL.

Redirect Page from OLD URL to NEW URL

Nginx :

Syntax  :

rewrite ^/<OLD LOCATION>$ <NEW LOCATION> permanent;

Example  :

rewrite ^/oldlocation$ http://www.newdomain.com/newlocation permanent;

Related posts

Leave a Comment