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]
精彩评论