0
如果頁面不存在,我需要重定向。我有一個帶有虛擬子域的.htaccess文件,請幫助我。錯誤文檔重定向htaccess
此代碼是無效的:ErrorDocument 404 http://fisl.eu/
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
ErrorDocument 404 http://fisl.eu/
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^(www\.)?fisl.eu$ [NC]
RewriteRule ^([^/]*)/?([^/]*)/?$ index.php?var1=$1&var2=$2 [NC,QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_URI} ^/index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} !^(www|mail).fisl.eu$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+).fisl.eu$ [NC]
RewriteRule ^([^/]*)/?([^/]*)/?$ zoznam.php?category=%2&subcategory=$1 [NC,QSA,L]
order deny,allow