Welcome! Log In Create A New Profile

Advanced

Url rewrite/301 redirect ?

Posted by roguehosting 
Url rewrite/301 redirect ?
August 18, 2009 08:38PM
How do i redirect file on http://domain.com/big.shtml to http://domain.com ?
On apache is
Redirect 301 /big.shtml http://www.domain.com/
How to do that on nginx?
Re: Url rewrite/301 redirect ?
August 18, 2009 08:43PM
Nevermind resolved.
Here is solution:
location /big.shtml {
root /path/of/domain/public_html;
rewrite /big.shtml http://www.domain.com permanent;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready