我的HTACCESS:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{THE_REQUEST} \s/+(.+?)\.(?:php|html?)[\s?] [NC]
RewriteRule ^ - [R=404,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*[^/])/?$ $1.php
</IfModule>
RewriteEngine On
ErrorDocument 404 /error
ErrorDocument 500 /error
ErrorDocument 403 /error
ErrorDocument 400 /error
ErrorDocument 401 /error
当我第一次单击www.example.com/hello之类的链接时,它会将我带到错误页面,但是当我第二次单击该链接时,它可以正常工作吗?
有人知道什么地方出问题了吗?