我的.htaccess文件如下配置:RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/bbs/
RewriteCond %{HTTP_HOST} ^bbs\.domain\.com$
RewriteRule ^(.*)$ bbs/$1 [L]#404错误处理
ErrorDocument 404 /404.php我这样配置后,访问bbs.domain.com是能正常访问站点目录下的bbs文件夹里的php文件的,但是在访问不存在的文件,不会按我设置的404错误跳转到404.php文件,而是报了个错误出来,要怎么做才能访问不存在的文件跳转我指定的404.php呢?
这是访问不存在的文件提示:Not Found
The requested URL /account/.php was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.