hey
my install version:
My website files are just some html and php files.
When accessing a non-existing directory or file, the server returns a 302 code instead of a 404 status code:
Accessing the existing directory, that is, 403 will redirect infinitely to 404.html
Due to user restrictions, I have merged all images:
my .htaccess fiel:
Rewrite Rules Added by CyberPanel Rewrite Rule Generator
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
End CyberPanel Generated Rules.
Rewrite Rules Added by CyberPanel Rewrite Rule Generator
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.)$
RewriteRule ^(.)$ http://%1/$1 [L,R=301]
End CyberPanel Generated Rules.
But my other websites, wp, laravel, etc. are all normal and can return the error status code normally!!!