https旧网址到同一网站的新https网址

时间:2015-11-25 05:49:19

标签: php .htaccess ssl opencart

我有一个开放的购物车网站。使用ssl证书,我想重定向我的 https:/categeory.html到https:/ category

并且网站已经有了这个网址https:/ category  但我在其他网站上创建的网站链接链接是 HTTPS:/category.html

我已经在htaccess中应用了这么多代码。

请帮忙。

1 个答案:

答案 0 :(得分:0)

您应该使用RedirectMatch

RedirectMatch 301 ^/([^.]+)\.html$ https://example.com/$1
相关问题