1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving subfolder of domain to new server & keeping url structure

Discussion in 'Web Hosting' started by Kronic, Mar 21, 2017.

  1. Kronic

    Kronic Registered Member

    Joined:
    Apr 11, 2010
    Messages:
    73
    Likes Received:
    20
    Occupation:
    Nismo Whore
    Location:
    Within a small corner in the back shadows of my ab
    A company I represent wants to remove wordpress from our current windows OS server at provider 1 and move it to a new server at provider 2. Godaddy handles our DNS. I would like to have it on the same domain without masking.

    My thoughts on approach:
    I would like to make a DNS entry on godaddy so that our current server and our new server can use the same URL (ie mysite(dot)com). But I only want the DNS to direct traffic to our current server. The goal here is to have the new server using the same URL as the old server so nothing needs to be masked once traffic is redirected with a 301 rule in the htaccess file. But no traffic outside of the 301 rule will end up going to the new server.


    I would then like to edit the htaccess file on our current server to redirect to the new servers IP address when someone goes to mysite(dot)com/blog.


    Does this make since and is it possible?

    PS
    • This company wants to keep the existing sellstuff(dot)com/blog URL structure when moving the wordpress installation to a different server. Not installing it on a new subdomain. They want to keep the web 2.0 property on the same domain
    • Reason for move is splitting the standard HTML website and the wordpress installation locations so the wordpress site does not interrupt the main website
     
  2. CenTex Hosting

    CenTex Hosting Jr. VIP Jr. VIP

    Joined:
    Nov 8, 2009
    Messages:
    1,898
    Likes Received:
    719
    Gender:
    Male
    Occupation:
    Founder/CEO
    Location:
    Austin, TX
    Home Page:
    only way the links will stay the same is if you set back up on a windows hosting plan. File structure is different for windows and linux servers. But you could switch to linux and just do a 301 redirect for all the old links. IN a month or two you would be all good
     
  3. AneaKr

    AneaKr Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    158
    Likes Received:
    27
    Occupation:
    SEM Specialist
    Home Page:
    OP, It's a little unclear what you're asking, but if you're asking about keeping permalinks while changing servers, it can get a little complicated. Are you keeping the same MySQL database? If so, you should be able to simply copy your entire directory over to the new server, and update your wp-config file (to keep the same permalink structure verify in your Administration > Settings > Permalinks panel).
     
  4. Alex4466

    Alex4466 Newbie

    Joined:
    Mar 27, 2017
    Messages:
    23
    Likes Received:
    1
    Gender:
    Male
    Why do you want redirect traffic in htaccess? You can change A record in DNS.