Reputation: 2401
Is it possible to create a custom error page and also that page will be manage through back-end in WordPress.
WordPress provided a 404.php default but I want to create a custom 404 page that can be managed through back end also (I want to create it without using any plugin).
Upvotes: 1
Views: 910
Reputation: 28
You can create a template file 404.php in your themes root folder, wordpress will then use this to route all 404 errors.
Refer for more information: https://codex.wordpress.org/Creating_an_Error_404_Page
Upvotes: 2
Reputation: 2038
Create a file '404.php' in your theme's root folder, WordPress uses this file to handle 404 errors. For more reference visit this official link - https://codex.wordpress.org/Creating_an_Error_404_Page
Upvotes: 0
Reputation: 373
You can manage the custom 404 page from admin without any plugin:
Step One:
Create page for 404 from backend & copy the page URL
Step Two
Open you .htaccess
and add the following
ErrorDocument 404 http://yourwebsite.com/error-404
Update the URL to your 404 page you created in step one
Upvotes: 1