我没有修改.htaccess文件的经验。 我试图将自定义错误页面添加到我的网站,并从托管服务提供商(1and1)获得以下模板。我知道如何添加页面,但我想逐行理解代码正在做什么。1and1 .htaccess指令:需要说明
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /errordocument.html
ErrorDocument 400 /errordocument.html
RemoveType x-mapp-php4 .html
预先感谢您的帮助!
谢谢,滞后!随着你的帮助我修复了我的.htaccess :) –