【发布时间】:2012-03-08 00:03:22
【问题描述】:
我的网站上有多个重写规则,如下所示
^product/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)$ /index.php?action=product&category=$1&type=$2
我还安装了自签名 ssl 证书和几个 php 重定向到 https 的页面。当我在这样的 https 页面上并单击与上述重写规则匹配的链接时,我最终会出现“未找到”错误页面
如何告诉apache所有的重写规则都应该相对于http而不是https来读取?
编辑: 我通过在 :443 Virtual Host 下添加重写规则的副本来整理它
【问题讨论】:
标签: php apache mod-rewrite https