RewriteRule只接受HTTPS但不接受HTTP

时间:2016-06-13 12:16:01

标签: .htaccess http redirect mod-rewrite https

我有这个网址:https://example.com/folder/cr/other/1234/orders.php

并在我的.htaccess文件中(https://example.com/folder/内):

# Turn on the rewriting engine
RewriteEngine On

# Rewrite for cronjobs
RewriteRule ^cr/([^/]*)/([^/]*)/orders\.php$ index.php?module=$1&action=x&id=$2&s=ord [L]

此HTTPS网址有效,但是当我尝试使用HTTP时,它无法正常工作,但会重定向到404未找到的网页。

那么我在重写规则中缺少什么?

0 个答案:

没有答案