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