Re direct wordpress website

Discussion in 'WordPress' started by andyelle1, Nov 10, 2011.

  1. #1
    Hi is there a way that I can redirect a wordpress.org website to another? Is there some html code I can put in the header to do this?
     
    andyelle1, Nov 10, 2011 IP
  2. Divided

    Divided Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    3
    Trophy Points:
    0
    #2
    In the load.php file, at the top you write something like:


    header('Location: example.co.uk');
    exit;
    
    PHP:
    That should redirect.
     
    Divided, Nov 10, 2011 IP
  3. SWPatrick

    SWPatrick Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just change the url in the general settings or better yet use .htaccess 301 redirect instead of the header redirect.
     
    SWPatrick, Nov 10, 2011 IP
  4. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #4
    SWPatrick if it is hosted on a wordpress.org site then you can't upload the .htaccess file to the server. Header relocation is next best thing I think.
     
    Toycel, Nov 10, 2011 IP
  5. SWPatrick

    SWPatrick Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    wordpress.org or .com?
     
    SWPatrick, Nov 15, 2011 IP
  6. windy87

    windy87 Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    windy87, Nov 15, 2011 IP
  7. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #7
    Why would you want to do that, do you want to move your whole site or what?
     
    Richie_Ni, Nov 16, 2011 IP
  8. тнє Sufi

    тнє Sufi Peon

    Messages:
    391
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Use this code in your .HTACCESS
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] 
    Code (markup):
    It will set a 301 redirection to http://www.newdomain.com/
    Change the domain accordingly. Don't forget to give the trailing slash!
     
    тнє Sufi, Nov 16, 2011 IP
  9. redlandgames

    redlandgames Active Member

    Messages:
    909
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #9
    Something simular i know where to get a plugin that when you make a post , when you click on the header of post will take you to an url of your choice , might be an option to you
     
    redlandgames, Nov 21, 2011 IP