How to change/redirect the wordpress blog mainpage url

Discussion in 'WordPress' started by DPISGREAT, Dec 2, 2010.

  1. #1
    I have a blog using wordpress

    www.xyz.com

    when somebody visit my site , i want to redirect from www.xyz.com to www.xyz.com/redirect

    Problem is , the link www.xyz.com/redirect is not a page or post !

    So i cannot chnage the frontpage link from reading option under wp admin menu!

    How can i do this !

    Thanks in advance!

    Regards
     
    DPISGREAT, Dec 2, 2010 IP
  2. joshuthomas

    joshuthomas Well-Known Member

    Messages:
    595
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    140
    #2
    You could get this done simply by using a GREAT feature you servers has. You could use the .htaccess 301 redirect.

    redirect 301 /old.htm http://www.new.com/
    Code (markup):
    Create a new file called .htaccess and add the above code in it, save and upload to the root of your website and it should work easily. let me know if that helped.

    cheers
    Josh
     
    joshuthomas, Dec 2, 2010 IP
  3. adimaryanto

    adimaryanto Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank's for share....I was looking for this
     
    adimaryanto, Dec 2, 2010 IP
  4. DPISGREAT

    DPISGREAT Active Member

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    DPISGREAT, Dec 2, 2010 IP
  5. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #5
    The best way, is to move your installation to the folder www.xyz.com/redirect.
    If all you do is redirect, then you will start to create a redirection quagmire when you install something else on the root.
    Just do it naturally and move it over.
     
    hmansfield, Dec 2, 2010 IP
  6. thenetspiders

    thenetspiders Active Member

    Messages:
    341
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #6
    Follow these steps no need of reinstatement

    go to you cpanel --> phpmy admin -> select Your Database gp to table wp-options -> edit your links field-> www.xyz.com/redirect and home field with -> www.xyz.com/redirect these changes will be in your database go to file manager in cpanel create a folder with redirect and move ur all file in to this directory and redirect your domain............

    truly work i had done this...........
     
    thenetspiders, Dec 2, 2010 IP
  7. DPISGREAT

    DPISGREAT Active Member

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #7
    this is not working ... is there any other way ...
     
    DPISGREAT, Dec 12, 2010 IP
  8. gunung1212

    gunung1212 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi .... I try to share experiences, maybe this old way

    1. Using the redirect page from cpanel hosting facilities (hosting you should have this facility)

    2. Using this code:
    <meta http-equiv="refresh" content="0; url=http://www.example.com/" />
    Code (markup):
    The code is placed in the header.php theme after meta tag
     
    gunung1212, Dec 13, 2010 IP
  9. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I agree with hmansfield above,

    I would move it over than redirecting, considering when you build backlinks and stuff, it would not be so confusing, in my opinion.
     
    KimiGermany, Dec 13, 2010 IP