Forum List
Message List
New Topic
dwkblog
Redirect 301
March 21, 2010 06:11AM
Registered: 14 years ago
Posts: 1
I use Wordpress,
my old links www. example. com/postname.html
how to redirect to www. example. com/postname on .htaccess?
Thank you
Reply
Quote
Jim Ohlstein
Re: Redirect 301
March 21, 2010 03:02PM
Admin
Registered: 15 years ago
Posts: 574
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
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018