开发者

How to setup 301 permanent redirect for following?

Im trying to figure out how to setup a 301 permanent redirect for the following paths.

From: /restaurants/casa-villa.html

To: /restaurants/casa-villa

Thanks! Jak开发者_运维知识库e


RewriteEngine On
RewriteBase /
RewriteRule restaurants/(.*).html /restaurants/$1 [R=301,L]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜