开发者

Transferring Everything from One Domain to Another

I want to move fr开发者_如何学JAVAom one domain to another one that is shorter and (hopefully) easier to remember, but I also want the transition to be as seamless as possible.

I'm a coder so I know about 301 redirects and I intend to use them, but is there something easier than manually adding entries in my .htaccess file?

The website is static with the exception of the blog, which is under the /blog/ directory and powered by WordPress. I want it redirected to my new domain name. File and folder structures don't change. Isn't there some kind of wildcard thing for this?


What type of web server is the site being hosted on? If its on Apache, you can use the RedirectMatch command


Why not leave the web site unchanged, and [temporailly] let the both the old and the new domains assume the IP of the site, at the level of DNS ?

In other words.

  • Let the DNS setup for the existing domain as-is (for now)
  • have the DNS of the new domain assingn the particular server name to the IP of the web server (or preferablly to a 2nd IP, also assigned to this very site).
  • In a few months / whenever the old domain is soon to expire, check what residual traffic may still be using the old domain name (Old IP), and for them only, add a small piece of text somewhere in the UI to inform them of the new domain.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜