Welcome! Log In Create A New Profile

Advanced

Redirect 301

Posted by dwkblog 
Redirect 301
March 21, 2010 06:11AM
I use Wordpress,
my old links www. example. com/postname.html
how to redirect to www. example. com/postname on .htaccess?

Thank you
Re: Redirect 301
March 21, 2010 03:02PM
There is no .htaccess support in nginx.

I think what you want to add to your configuration is:

[code]
server {

....

location / {

....

rewrite ^/(.*)\.html$ /$1 permanent;

....

}

....

}
[/code]

--
Jim Ohlstein
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready