• Hi,
    I am designing my own custom 404 page and after seeing the various options I am wondering whether it is possible to tell WP to save the page on the site main dir instead then on the database as it does by default.
    So in this way I can use the editor to design the page as I want but without needing a plugin to then make it work. I would just have to write a rule inside .htaccess (and/or modify the Apache config file)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, it is possible to save a custom 404 page in the root directory of a WordPress site instead of in the database. You can create a new .php file with the desired HTML, CSS, and JavaScript code and name it 404.php. Then, upload it to the root directory of your WordPress site for a custom 404 page that will be displayed whenever a user visits a page that doesn’t exist.

    Thread Starter sinergyinaction

    (@sinergyinaction)

    Ok, thanks….What you are saying is that you can’t create it within WordPress itself without resorting to php + html + css programming, right?

    You could create your 404 page manually using HTML, CSS, jQuery, JavaScript, and PHP, or you could use a page builder. It’s up to you.

    Why not give it a try and let me know how it goes?

    Thread Starter sinergyinaction

    (@sinergyinaction)

    But if I use a page builder, the page will remain stored in the database instead of being saved as an html file in the directory I want. At least I haven’t found out how to do it like this …. (I am using Elementor)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Saving page on main directory instead of on DB’ is closed to new replies.