开发者

Redirecting static to dynamic URL's

开发者 https://www.devze.com 2023-01-15 16:33 出处:网络
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 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

精彩评论

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