简体   繁体   English

在同一网站中将https旧url转换为新https url

[英]https old url to new https url in same website

I have a open cart website. 我有一个开放的购物车网站。 with ssl certificate and I want to redirect my https: /categeory.html to https: /category 与ssl证书,我想将https:/categeory.html重定向到https:/ category

and website have already this url https:/category but my website back link that we have created on other website is https:/category.html. 并且网站已经具有该URL https:/ category,但是我们在其他网站上创建的我的网站反向链接是https:/category.html。

I have already apply so many code in htaccess. 我已经在htaccess中应用了很多代码。

please help. 请帮忙。

您应该使用RedirectMatch

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM