WebFaction
Community site: login faq

Hi,

I have my site under www.mysite.com (hosted by OVH) and I now created a WP blog for this site under username.webfactional.com/mysite_blog.

I would now like to access this site via blog.mysite.com and www.mysite.com/blog.

Can you help me in the procedure to do this? Thanks in advance! Kind regards,

Fred

asked 25 Dec '12, 04:17

_Fred_
1134
accept rate: 0%


Hello,

An assumption is made that mysite.com's nameservers are not our, WebFaction ones, and you are using third party ones.

Regarding blog.mysite.com:

  • create an A record for the blog.mysite.com subdomain to point to our server - its IP is listed in your Control Panel, the Account -> Dashboard page, the Settings section
  • then create a website, if none exists, to bind blog.mysite.com and your blog app, via the Control Panel, the Domains/websites -> Websites page

and you will be set.

As to the www.mysite.com/blog URL - this is not so straightforward. The easiest way to "map" mysite.com/blog to blog.mysite.com is to use a redirect to transfer visitors from mysite.com/blog to blog.mysite.com. Remember to use SEO friendly 301 (permanent) redirects if you are concerned about your search engine rankings.

If you are set on having the same site open under both URLs (which, on one hand, will perhaps hurt your SEO rankings, having duplicate content under different URLs) then there are some alternatives:

  • include the content of blog.mysite.com in an iframe in a page on mysite.com/blog (though that will cause issues with CSS being cross-site linked)
  • set up the same blog on your OVH account, in the /blog folder (perhaps just copy the files from our server to the OVH one), but configure it to use the MySQL database on our server (you will need to submit a request for us to enable remote access to your DBs first). If your account with us is in the EU datacenter, then the delay should not be that noticeable. I have played around with similar setups, and it works. There was some delay but the sites were in the EU and the US. Assuming the pages and design of your blog do not change much in time, you will have little trouble maintaining such a setup.

But again, a 301 redirect would be the easiest and cleanest solution here.

If you need clarification on any of the steps, outlined above, then please do not hesitate to ask.

Sincerely,

Valentin I.

WebFaction Support


WebFaction - Smarter web hosting

http://webfaction.com http://twitter.com/webfaction - http://facebook.com/webfaction

permanent link

answered 25 Dec '12, 05:37

valentini
2614
accept rate: 28%

Hi Valentin,

Thanks for your support!

I have added a Type A pointing to the WebFaction IP in my OVH Manager and tried to perform the described steps in WebFaction as well. But for the moment, when trying to access blog.mysite.com, it gives an error saying "There is no application mounted at the root of this domain". Any idea why?

Maybe because when I have added blog.mysite.com into my website settings, WebFaction has created a "classic" domain where Hosting is defined with "WebFaction"? Is this correct?

Regarding the 301 part, that would indeed be the best solution I think. Is there a difference between a "301" and a "CNAME" (also regarding SEO)? Is this the same principle we apply when redirecting mysite.com to www.mysite.com?

Thanks again for your precious helps! Kind regards,

Fred

(25 Dec '12, 07:58) _Fred_

Hi again,

Having looked a little further for the first part of my question, I see that blog.mysite.com does not give work but blog.mysite.com/mysite-blog works correctly but not as I would like to set it up.

Therefore, would it be possible to link blog.mysite.com directly username.webfactional.com/mysite-blog?

TIA! Kind regards,

Fred

(25 Dec '12, 08:18) _Fred_

Actually the DNS settings on our end do not really matter, as long as your domain name uses external to us DNS servers. It appears you have mapped your blog app to the /mysite-blog URL. Just edit the website you have created and add the blog app to the "/" URL, via the Contents caret when editing the website. Then blog.mysite.com will start opening your blog.

If you need further assistance with this change then either provide your domain name here, or better yet, submit a support ticket at https://help.webfaction.com/, so we can assist ASAP.

With regards to the CNAME question - CNAMEs are widely used, and they do not carry SEO penalties.

But CNAMEs are not the same as 301 redirects - while in some cases they might provide the same functionality, they are fundamentally different in their operation. A full length discussion is out of the scope of this post, but just remember this:

  • 301 redirects work with URLs
  • CNAMEs work with (sub) domain names only

CNAMEs are used to tell the visitor where to send his/her HTTP request, and a 301 redirect actually handles that very HTTP request.

You will not be able to accomplish the redirection from mysite.com/blog to blog.mysite.com, as a CNAME cannot be created for an URL (http://mysite.com/blog in this case).

In short, a CNAME entry will accomplish nothing in this particular setup, so you need not bother with it here.

(25 Dec '12, 08:51) valentini

Hi Valentin,

Thanks for your answer!
CNAME and 301 is clear now. For the other part, I opened a ticket as suggested.

Kind regards,

Fred

(25 Dec '12, 11:00) _Fred_

Hi,

I am glad I could be of assistance!

Merry holidays!

Best wishes,

Valentin I.

WebFaction Support


WebFaction - Smarter web hosting

http://webfaction.com http://twitter.com/webfaction - http://facebook.com/webfaction

(25 Dec '12, 11:13) valentini
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128
×76

question asked: 25 Dec '12, 04:17

question was seen: 9,869 times

last updated: 26 Dec '12, 14:36

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM