■環境
OS:CentOS Linux release 7.4.1708
apache:Apache/2.4.6
■実現したいこと
http、httpsのアクセスをすべて特定のリライト(https://IPadress/sorry.html)としたい。
■現状の設定
/etc/httpd/conf.modules.d/00-rewrite.confに以下、記載(リライト関連のみ抜粋)
RewriteCond %{HTTPS} off [OR]
RewriteCond %{REQUEST_URI} !^/sorry.html$
RewriteRule ^(.*)$ https://IPadress/sorry.html [R=301,L]
apache初構築で、上記問題が解決出来ず困っております。ぜひ、ご協力お願い致します。
■追記
httpはすべて、https://IPadress/sorry.htmlへリライトされますが、httpsはすべてリライトされないいう事象が解決したい問題となります。
例:http)http://IPadress/sorry.html/test→https://IPadress/sorry.html
例:https)https://IPadress/sorry.html/test→https://IPadress/sorry.html/test
回答1件
あなたの回答
tips
プレビュー