Viewing 4 replies - 1 through 4 (of 4 total)
  • Add this to the bottom of your “.htaccess” file:


    ErrorDocument 404 /index.php

    pizdin_dim, adding the ErrorDocument directive to .htaccess would direct a 404 to the index.php page, which he’s already having wordpress do.

    ezkimox, where do you want the pages to go? If you want the pages to go to a 404 error page, your best bet is to make your own and place the template you made under your active theme in wp-content/themes/ called 404.php. The WordPress codex explains more about how WordPress handles missing template files in Template Hierarchy.

    Oops,

    I was a tad careless. I should have said:

    ErrorDocument 404 /index.php?error=404

    Thread Starter Jon

    (@ezkim0x)

    ahh.. just placing the 404.php file in my themes directory ended up working.

    thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘htaccess file’ is closed to new replies.