0

htaccess ファイルに問題があります。

http://www.example.com/customer/contract/download
http://www.example.com/customer/contract/upload

これらの上記の URL は機能し、残りの URL は maintenance.html にリダイレクトされるはずです。

htaccess ファイルでこれらのケースをどのように定義できますか??

これが私のhtaccessコードです..

RewriteEngine on
IndexIgnore *

RewriteCond $1 !^(index\.php|public|images|robots\.txt|favicon\.ico|redirigir\.php)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)$ public/maintenance.html [L]
4

2 に答える 2

0

次のルールが機能するはずです。

RewriteEngine on
IndexIgnore *

RewriteCond $1 !^(index\.php|public|images|robots\.txt|favicon\.ico|redirigir\.php)
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond $1 !^(index\.php|public|images|robots\.txt|favicon\.ico|redirigir\.php|customer)
RewriteRule ^(.*)$ public/maintenance.html [L]
于 2013-10-21T12:11:32.467 に答える