开发者

Efficient Redirect code for the htaccess

开发者 https://www.devze.com 2023-03-07 00:38 出处:网络
Looking for an efficient Redirect code for the htaccess. There are about 200 links (practically all requests will go through t开发者_如何学编程he redirect)

Looking for an efficient Redirect code for the htaccess. There are about 200 links (practically all requests will go through t开发者_如何学编程he redirect)

Goals:

  1. http://example.com/pages.shtml to be redirected to http://example.com/pages

  2. should be 301 redirect keeping in mind page rank preservation


RewriteRule ^([^/]+)\.shtml http://example.com/$1 [L,R=301]
0

精彩评论

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