Moving my blog?

Discussion in 'Site & Server Administration' started by kalle437, Sep 28, 2007.

  1. #1
    Hello!
    Stupid as I am I put my blog at this adress: http://bitsniff.com/blog. At the time I did that the blog was only temporary and something I did for fun, but now I want to start serious with the blog and I want to move the blog to http://www.bitsniff.com, but then all the current links that points to my blog will get a 404, and I don't want that.

    Is there any smart way of moving the blog to this new adress, but at the same time redirecting all the links to the posts on the old adress to the same posts but on the newer adress?

    Thanks,
    Karl.
     
    kalle437, Sep 28, 2007 IP
  2. best host world

    best host world Peon

    Messages:
    213
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try Htaacess , the one way for trensfer the enternal links to your webblog to redirect it to the right files and posts !

    Thnaks Good luck
     
    best host world, Sep 28, 2007 IP
  3. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Move all the files to the root directory, then update the config file.
    Then do a 301 redirect with htaccess
     
    cyanide, Sep 29, 2007 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Camay123, Sep 30, 2007 IP
  5. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #5
    I need to know the same thing. Anyone know how to "do a 301 redirect with htaccess"?
     
    Jerlene.net, Oct 2, 2007 IP
  6. xpsave

    xpsave Peon

    Messages:
    697
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The easiest way I found for redirecting a blog is creating an index.php file with this inside and dropping it in your domain root
    
    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.mydomain.com/blog" );
    ?> 
    PHP:
     
    xpsave, Oct 2, 2007 IP
  7. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #7
    Is it index, header or does it just depend on the site?
     
    Jerlene.net, Oct 2, 2007 IP