help -Redirect wordpres to new domain ( same hosting- dreamhost )

Discussion in 'Web Hosting' started by aaheroe, Feb 8, 2008.

  1. #1
    Hello

    please help me

    i want to move(redirect) my old wordpresssite.com to wordpresssite.net

    i use dreamhost, I added wordpresssite.net and set directory same with wordpresssite.com.

    how i set httaccess.

    when visitor visit wordpresssite.com transfer to wordpresssite.net and then they also can see all my posts with .net domain, not .com anymore

    can u you help me ?


    thanks
     
    aaheroe, Feb 8, 2008 IP
  2. Proximity

    Proximity Banned

    Messages:
    3,930
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do this in your domain CP. You can easily redirect the whole old domain to the new one.
     
    Proximity, Feb 8, 2008 IP
  3. aaheroe

    aaheroe Active Member

    Messages:
    231
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    75
    #3
    that not work bro

    :(

    please help me
     
    aaheroe, Feb 8, 2008 IP
  4. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,121
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #4
    Where is your .com domain registered? If it's GoDaddy, go to it's CP (in GoDaddy Domain Manager) and click on Domain Forwarding. From there select 301 redirect and enter the .net version. This will redirect all of the visitors from site.com to site.net and site.com/page to site.net/page. Now, the hosting issue. You just need to add the .net domain as an addon domain and move the files from the .com's directory to the .net's directory, just for safety. Then go to the Wordpress CP (or open it's config.php file, I don't have much experience with WP), there you should be able to enter your domain's root and change it from site.com to site.net, so your whole script does not get confused and list all the links as site.net/example-page instead of site.com/example-page.

    I hope I was helpful with that, if I was, feel free to give me a green rep, but that's not a mandatory.
     
    ColorWP.com, Feb 9, 2008 IP
  5. aaheroe

    aaheroe Active Member

    Messages:
    231
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    75
    #5
    my friend said it only need modify httaccess

    but he forgot the code:(

    help me please
     
    aaheroe, Feb 9, 2008 IP
  6. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,121
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #6
    I am not too much in .htaccess, but it will be more helpful if you have posted your htaccess here. However, I can give you this comprehensive .htaccess tutorial I found recently.
     
    ColorWP.com, Feb 9, 2008 IP
  7. ravi_9793

    ravi_9793 Banned

    Messages:
    576
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    delete your .com account.........
    and park your .com domin name in parked domain name in your cpanel of .net acount.
     
    ravi_9793, Feb 9, 2008 IP
  8. sickanimations

    sickanimations Peon

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you have mod_rewrite enabled, the following .htaccess config will redirect the visitor (and search engines) to your new site - while maintaining the request.

    (ie. if visitor requests "http://www.yourolddomain.com/posts/how-to-stop-satellites-reading-your-thoughts/" , they would be redirected to "http://www.yournewdomain.com/posts/how-to-stop-satellites-reading-your-thoughts"

    Here's the config:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]
     
    sickanimations, Feb 10, 2008 IP