Help with redirects in Wordpress.

Discussion in 'Site & Server Administration' started by TaTeTu, May 24, 2009.

  1. #1
    Hi,

    I want redirect error pages in Wordpress, example, in .htaccess. I put this line:

    ErrorDocument 404 http://www.mydomain.com
    Code (markup):
    But it not reditect error 404 to homepage.

    How I do it?

    Thanks a lot,
    Sergio.
     
    TaTeTu, May 24, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    It should work but you can try the following:

    ErrorDocument 404 /index.php

    replace index.php with the your main homepage file.

    Kailash
     
    kailash, May 24, 2009 IP
  3. TaTeTu

    TaTeTu Active Member

    Messages:
    540
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks, but not work.:)
     
    TaTeTu, May 24, 2009 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    I suggest contacting the host if it is still not resolved.

    Kailash
     
    kailash, May 28, 2009 IP