0
メンテナンスファイルが存在する場合、最初のルールは正常に機能します。そうでない場合、2番目のルールは特定のURIにリダイレクトしません。ルールの発注問題はありますか?HTTPD.confを使用してルートから特定のURIにリダイレクト
#########################################
RewriteCond %{DOCUMENT_ROOT}/server_maintenance.html -f
RewriteCond %{REQUEST_FILENAME} !/server_maintenance.html
RewriteRule ^.*$ /server_maintenance.html [L]
#########################################
## the %{HTTP_HOST} evaluates to the HTTP header with the name given in this case host.server.org, with NC being non case sensitive.
## it will rewrite the url at the server side to append the URI of lawson/portal
##########################################################################
RewriteCond %{HTTP_HOST} ^host\.server\.org$ [NC]
RewriteRule ^host\.server\.org$ "https\:\/\/host\.server\.org\/lawson\/portal" [L]
#########################################
この方法を使用して一致します - 私は次の問題を受け取る:あなたはこのサーバー上の/アクセス権限がありません。 Optionsディレクティブで禁止されているディレクトリインデックス:/ lsf10/webdocs/ – Configueroa
インデックスまたはディレクトリインデックスが設定されていない場合、どのようにディレクトリにサービスを提供すると思いますか? –