Blackbird Theme. Redirect to home page if a link does not exist.

Discussion in 'BlackBird WordPress Theme' started by mog design, Apr 8, 2013.

  1. mog design

    mog design New Member

    Joined:
    Feb 2, 2013
    Messages:
    12
    Likes Received:
    0
    Hello
    I want to redirect to homepage instead of displaying the "page not found message". How do I do that in the blackbird theme?
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
     
  3. mog design

    mog design New Member

    Joined:
    Feb 2, 2013
    Messages:
    12
    Likes Received:
    0
    Can I just replace all the text in the 404.php file with the following or is that not recommended?
    Will it revert if I udate the theme?

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".get_bloginfo('url')."");
    exit();
    ?>

    Thanks in advance.
     
  4. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Such issue is not occurring at our side, So it is not possible for us to provide any solution to you without your detail.
    Please send dashboard detail asked in above post.
    Send that information on our email at [email protected]
     

Share This Page