我在我的 php 网站中使用了 URL 重写。我需要将所有未找到的页面重定向到即将推出的页面
.htaccess
在文件中查看我的代码
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=permanent,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
ErrorDocument 404 /errors/commingSoon.php
但是当我浏览一个无效页面时,它的结果是
Not Found
The requested URL /komet-india/Houseboat.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我的孵化代码是错误的吗?
请帮我