【发布时间】:2021-03-29 20:19:44
【问题描述】:
瞄准
我想将我网站的特定页面重定向到 http。
背景
我有以下 .htacess
Options All -Indexes
RewriteEngine On
RewriteRule ^(.*)\.html $1\.php [L]
RedirectMatch ^/*$ https://**mydomain_name**/files/index.php
Options +SymLinksIfOwnerMatch
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /files/error.php [L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
这允许我将所有内容重定向到 https(这很好用)
问题
是否可以将地址包含 internal (https://mydomain_name/internal/) 的所有页面重定向到 http(而不是 https)?
【问题讨论】:
标签: apache .htaccess http mod-rewrite url-rewriting