Forums

[resolved] How to set up 404 custom page for wp site via .htaccess (3 posts)

  1. cooldude7
    Member
    Posted 1 year ago #

    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.

  2. webjunk
    Member
    Posted 1 year ago #

  3. cooldude7
    Member
    Posted 1 year ago #

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic