Pointing a blog to a subdomain

Permalink
I have a client that would like to have it set up so if a person goes to blog.domainname.com it will goto their blog site which is domain.com/blog.

Now I could create a folder - say blog - and put in an index.php with header re-direct to the correct directory and then point the sub domain to that folder (blog).

What I am wondering is - is that the best way to do it or is there a better alternative?

plschneide
 
moosh replied on at Permalink Reply
moosh
Hi,

Normally, you need to create a subdirectory with the same name of your subdomain.

Then create subdomain in your admin panel from your hoster.

So, blog.domain.com will automatically call files under domain.com/blog
plschneide replied on at Permalink Reply
plschneide
Right that part is fine - I just didn't know if there was anything in concrete I could/needed to do to point a page to that directory I created. I guess I just need to create an index.php in that directory with a header re-direct to the concrete pretty URL or cID page - that correct?

-----Original Message-----
From: Concrete5 Community [mailto:discussions@concretecms.com]
Sent: Sunday, May 15, 2011 3:06 PM
To: pauls@studio5d.com
Subject: Pointing a blog to a subdomain: Pointing a blog to a subdomain
Shotster replied on at Permalink Reply
Shotster
Are you saying that domain.com/blog is a C5 page?

(BTW, you might want to edit your message to remove the email addresses.)

-Steve
jordanlev replied on at Permalink Reply
jordanlev
I'm not sure this is possible. It's easy to set up Apache to serve yoursite.com/blog as if it were blog.yoursite.com, but the problem is that Concrete5 seems to assume a single domain name and changes all links to use that -- so if someone went to blog.yoursite.com everything would work fine but if they clicked any link on the page, it would go to yoursite.com/blog/whatever -- which also works but is not really much better than just redirecting blog.yoursite.com to yoursite.com/blog

There is probably some super hacky way to achieve this (I don't know what, but anything is possible, right?) -- but I doubt it's worth the trouble.