开发者

Redirecting static to dynamic URL's

I know this has been asked a few times but I can't 开发者_StackOverflow中文版seem to figure out the correct syntax for our situation.

I am trying to permanently redirect links such as example.com/work.aspx to example.com/work in the .htaccess file.

Basically converting an ASP.NET site to Wordpress.

Any help is much appreciated.

Thanks

Giles


RewriteRule ^(.*).aspx$ /$1 [R=301]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜