Custom 404 not working

https://bluewinds.rf.gd

On ny site, i have made a custom 404 page and have edited .htaccess as well as cpanel. But it redirects me to a rather nasty page.
for example type
https://bluewinds.rf.gd/random
My 404 is very nice but it doesn’t show up.
I have put htaccess in bluewinds.rf.gd/htdocs.

The surprising thing is when i manually check my error page
https:// bluewinds.rf.gd/errors/404.html

It isn’t mine but a poorly built 404 page.

This is my htaccess code:

##################################################

DO NOT EDIT THIS FILE

Create a new .htaccess file in your htdocs

directory (or example. com/htdocs/ directory)

to add your own rules or override these rules.

##################################################

DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 400 https ://oxydac.cf/400.htm
ErrorDocument 401 https ://oxydac.cf/401.htm
ErrorDocument 403 https: //bluewinds .rf.gd/errors/403.html
ErrorDocument 404 https: //bluewinds .rf.gd/errors/404.html
ErrorDocument 503 https:/ /oxydac.cf/503.htm

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{“scheme”:“https”}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

For some reason I don’t fully understand, the Apache web server really doesn’t like it if you call a folder errors, and it will always return the default error message.

Your code is fine, just call the folder with the error pages anything other than errors and it will work.

Also, you do you, but I don’t understand why you would copy the “DO NOT EDIT THIS FILE” notice from the default .htaccess. It doesn’t do anything other than tell you that you cannot edit that file.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.