简体   繁体   中英

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

and website have already this url https:/category but my website back link that we have created on other website is https:/category.html.

I have already apply so many code in htaccess.

please help.

您应该使用RedirectMatch

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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