开发者

Efficient Redirect code for the htaccess

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜