首页 > 问答 > ErrorDocument 404  /Error.html加在.htaccess文件的哪个位置?

ErrorDocument 404  /Error.html加在.htaccess文件的哪个位置?

[导读]:请问 ErrorDocument 404  /Error.html加在.htaccess文件的哪个位置? .htaccess文文件内容如下: order deny,allow deny from all RewriteEngine On RewriteBase / direct one-word access RewriteRule ^(article)_(list)_([...

请问 ErrorDocument 404  /Error.html加在.htaccess文件的哪个位置?

.htaccess文文件内容如下:


order deny,allow
deny from all


RewriteEngine On

RewriteBase /

direct one-word access

RewriteRule ^(article)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2&tid=$3 [QSA,L]

RewriteRule ^(special)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2&sid=$3 [QSA,L]

RewriteRule ^(article)_(read)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&did=$3 [QSA,L]

RewriteRule ^(form)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&fgid=$3 [QSA,L]

RewriteRule ^(forum)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2&btid=$3 [QSA,L]

RewriteRule ^(forum)_(read)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2&bid=$3 [QSA,L]

RewriteRule ^(forum)_(add)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&btid=$3 [QSA,L]

RewriteRule ^([a-zA-Z]+)_([a-zA-Z]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2 [QSA,L]

RewriteRule ^(public)_([a-zA-Z]+)_([.0-9a-zA-Z]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&rd=$3 [QSA,L]

RewriteRule ^(order)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&did=$3 [QSA,L]

RewriteRule ^(ordermain)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2 [QSA,L]

RewriteRule ^(ordermain)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&oid=$3 [QSA,L]

RewriteRule ^(forummain)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2 [QSA,L]

RewriteRule ^(forummain)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&bid=$3 [QSA,L]

RewriteRule ^(enquiry)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&did=$3 [QSA,L]

RewriteRule ^(enquirymain)_(list)_([0-9]+)[_]([0-9]).([a-zA-Z]+)$ index.php\?page=$4&ac=$1&at=$2 [QSA,L]

RewriteRule ^(enquirymain)_([a-zA-Z]+)_([0-9]+).([a-zA-Z]+)$ index.php\?ac=$1&at=$2&eid=$3 [QSA,L]
RewriteEngine on
RewriteCond %{http_host} ^yishi.hk [NC]
RewriteRule ^(.*)$ http:+//www点yishi点hk/$1 [L,R=301]

最下面就可以

###

你放在最下面

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/106635.html