Moving subfolder of domain to new server & keeping url structure

Kronic

Registered Member
Joined
Apr 11, 2010
Messages
74
Reaction score
21
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
 
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
 
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).
 
Why do you want redirect traffic in htaccess? You can change A record in DNS.
 
Back
Top