douju7245 2015-11-25 05:49
浏览 35
已采纳

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

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.

  • 写回答

1条回答 默认 最新

  • doudie2693 2015-11-25 07:12
    关注

    You should use RedirectMatch

    RedirectMatch 301 ^/([^.]+)\.html$ https://example.com/$1
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有谁能看看我coe文件到底哪儿有问题吗?
  • ¥20 我的这个coe文件到底哪儿出问题了
  • ¥15 matlab使用自定义函数时一直报错输入参数过多
  • ¥15 设计一个温度闭环控制系统
  • ¥100 rtmpose姿态评估
  • ¥15 java 通过反射找路径下的类,打包后就找不到
  • ¥15 通联支付网上收银统一下单接口
  • ¥15 angular有偿编写,
  • ¥15 centos7系统下abinit安装时make出错
  • ¥15 hbuildex运行微信小程序报错