• Resolved cooldude7

    (@cooldude7)


    hi,

    i have site running wordpress and a theme called v2 template,
    v2 template has its own 404.php and i have also made some changes in it to guide visitors, but when calling dead links 404.php doesnt shows up, it just gives normal “not found 404 error”

    i tried adding path to 404.php in htaccess file like this

    # BEGIN WordPress
    # END WordPress

    ErrorDocument 404 /wp-content/themes/v2theme/404.php

    but it gives me this.,

    Fatal error: Call to undefined function get_header() in /home/grabdol1/public_html/mysite.com/wp-content/themes/v2theme/404.php on line 1

    please help me ,what should i add in .htacces file so that, it will sho my custom themes 404.php.

    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set up 404 custom page for wp site via .htaccess’ is closed to new replies.