Hi!
I set a template for my 404 page.
However, if I visit https://www.fuckdiestudieschuld.nl/404 I end up at https://www.fuckdiestudieschuld.nl/tdb_templates/404-template-8/.
How can I change this? I want the address of the 404 to be a simple /404.
Thanks!
Maaike
Additional information:
If I edit the thing I can change the url. However, if I change it to 404 it automatically becomes 404-2.
Help! 🙂
Hello !
In the cases of broken URLs or missing links, servers respond to a request with a numerical code. The first digit of the 404 indicates a client error, while the following two digits indicate the specific error: missing page.
The 404 is the error code, no user will ever go to – example.com/404, they will face this when there is no result on the search they do.
I hope this was helpful !
You don’t have to edit the link.
Thank you !
Hmm, call me a crazy perfectionist, because I certainly am haha, but I would like to change it?
I love to check 404 pages on random websites, it’s one of my guilty pleasures haha, and it looks silly if the url isn’t simply /404.
Isn’t there a way for me to fix this?
Thanks!
I am not sure if this would work, but you could give it a shot.
Install Yoast Seo, or if you already have it installed, go to this location -> https://prnt.sc/qemunz . Remove site title and type 404 and click save.
Unfortunately, that doesn’t work. Yoast SEO only changes the way pages appear in Google, it doesn’t change the actual name of the page. But thanks for your suggestions, I appreciate the help!
Hello !
As you can see here: https://www.screencast.com/t/G51mrjfV What you type, that is the url that will remain. What you were seeing in the first reply is the link directly to your template.
Any other custom url will require custom work.
We are sorry for the inconvenience !
Thank you !
Hmm, I don’t quite get it. If the url can end with, for example, /fail than why can’t it end with /404? Why does the /404 change into the template? If it would just stay /404 I would be happy.
Hello maaikewind,
I tried it on my site, /404 doesn’t change into https://www.example.com/tdb_templates/404-template-8/ , it stays as https://www.example.com/404 . This, I think has to do with permalinks I guess.
So, maybe you could take a backup and try the permalinks settings of my site.
My .htaccess also contains this
# BEGIN WordPress
# The directives (lines) between BEGIN WordPress and END WordPress are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
And at last my permalinks settings(Settings->Permalinks->) are as below
Custom Structure https://www.example.com /%category%/%postname%/
Please do take a full backup before trying it out.
Regards