cancel
Showing results for 
Search instead for 
Did you mean: 

Point a domain to a subdirectory/folder on ccgi !

chw
Newbie
Posts: 6
Registered: ‎24-05-2010

Point a domain to a subdirectory/folder on ccgi !

Hi
I have been following these very helpful instructions for hosting a domain on ccgi:
http://community.plus.net/forum/index.php/topic,46224.0.html
However, for anyone else who wants to try it, since the introduction of the new CGI platform (March 2010, I think), you will also need the information here:
http://community.plus.net/forum/index.php/topic,84267.msg696064.html#msg696064
(and don't I wish I had found that earlier). Essentially the code in the first post to map www.mydomain.co.uk onto ccgi.myusername.plus.com/myfolder should now be:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mydomain\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/~myusername/myfolder/
RewriteRule (.*) /myfolder/$1

Anyway, so now I have managed (eventually) to map http://www.mydomain.co.uk I am mostly a happy bunny, but I am just wondering, is there anything I can do about mapping http://mydomain.co.uk to the same place. I can't see how it's possible as I can't imagine what the equivalent CNAME record would be. However, if anyone can contradict me I would be even happier.
Thanks (especially to ffupi and Gabe who posted the previous posts),
Chris
3 REPLIES 3
Gabe
Community Veteran
Posts: 767
Registered: ‎29-10-2008

Re: Point a domain to a subdirectory/folder on ccgi !

Hi Chris,
You point your domain at ccgi using an A record:
yourdomain.co.uk.      a  84.92.1.4
remembering the dot after uk.
Gabe
chw
Newbie
Posts: 6
Registered: ‎24-05-2010

Re: Point a domain to a subdirectory/folder on ccgi !

Brilliant! Thanks.
So I might just as well use two A records rather than an A record for domain.co.uk and a CNAME for www.domain.co.uk? Or doesn't it make much difference?
Chris
chw
Newbie
Posts: 6
Registered: ‎24-05-2010

Re: Point a domain to a subdirectory/folder on ccgi !

Actually I've just found the answer myself - CNAME records generate two DNS look ups whilst A records only generate one, so A is to be preferred.
So item 5 in the original post would be better as:
Left fieldTypePriRight field
domain.co.uk.A84.92.1.4
www.domain.co.uk.A84.92.1.4

Chris