cancel
Showing results for 
Search instead for 
Did you mean: 

hosting two websites in the ccgi area

jdean
Newbie
Posts: 4
Registered: ‎25-05-2008

hosting two websites in the ccgi area

I have two domain names hosted in the ccgi area. I would like to have each one with unique content. So I have appended the following rewrite conditions at the end of my .htaccess file .
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.selfstudy.org.uk$ [nc]
RewriteRule (.*) /domainb/$1
Unfortunatley this has no effect!  Am I doing something really stupid?
I have used  phpinfo();  to try to investigate if the rewrite module is loaded and have not spotted the module loaded. Am I correct in assuming the rewrite module is enabled on all plus.net php servers?
3 REPLIES 3
Prod_Man
Grafter
Posts: 287
Registered: ‎04-08-2007

Re: hosting two websites in the ccgi area

I'm pretty sure that the output from PHPInfo(); bears no relevence to Apache Modules...
I'm not a wizard with .htaccess files.
I've even read roumours that you apparently might "no longer need this"
I think it is in the Server Apache Domain configuration stuff, which only PlusNet can control really
and to do it I think you'd probably have to Raise a ticket to request it.
But, assuming worst case - that is all false...
This is a blind copy of another Post by ffupi who had done this before.

# Domain 1 into myfolder1
RewriteCond %{HTTP_HOST} ^www.mydomain1.ext$ [nc]
RewriteRule (.*) /myfolder1/$1
# Domain 2 into myfolder2
RewriteCond %{HTTP_HOST} ^www.mydomain2.ext$ [nc]
RewriteRule (.*) /myfolder2/$1

*shrugs*, yours looks fine to me.  Roll_eyes
I don't think you've done anything stupid at all, you've gone by the book. 😕
Other might ask you to use the Drupal solution -
but that probably means more work and totally unecessary.
.htaccess should work.
I'm yet to have a fully working .htaccess file on the CCGI Service that isn't just 1 line containing "deny from all".
But that's just my personal experience - not to trust it nor to rely upon it.
Sorry I can't be of much help in this case...
Jim,
jdean
Newbie
Posts: 4
Registered: ‎25-05-2008

Re: hosting two websites in the ccgi area

Tried the .htaccess mods no luck. Thats why I thought the rewrite engine is not enabled.
I have asked plus.net to make the changes so that each domain points to a diffrent loaction within the ccgi area, and they say ask the forum. They will no answer any questions as they reckon this can not be handled by the ticket system.

Quote from: Prod_Man
I'm pretty sure that the output from PHPInfo(); bears no relevence to Apache Modules...
I'm not a wizard with .htaccess files.
I've even read roumours that you apparently might "no longer need this"
I think it is in the Server Apache Domain configuration stuff, which only PlusNet can control really
and to do it I think you'd probably have to Raise a ticket to request it.
But, assuming worst case - that is all false...
This is a blind copy of another Post by ffupi who had done this before.

# Domain 1 into myfolder1
RewriteCond %{HTTP_HOST} ^www.mydomain1.ext$ [nc]
RewriteRule (.*) /myfolder1/$1
# Domain 2 into myfolder2
RewriteCond %{HTTP_HOST} ^www.mydomain2.ext$ [nc]
RewriteRule (.*) /myfolder2/$1

*shrugs*, yours looks fine to me.  Roll_eyes
I don't think you've done anything stupid at all, you've gone by the book. 😕
Other might ask you to use the Drupal solution -
but that probably means more work and totally unecessary.
.htaccess should work.
I'm yet to have a fully working .htaccess file on the CCGI Service that isn't just 1 line containing "deny from all".
But that's just my personal experience - not to trust it nor to rely upon it.
Sorry I can't be of much help in this case...
Jim,
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: hosting two websites in the ccgi area

While you can point domains to separate folders on you www (homepages) webspace via the member centre domain control, you cannot do the same on the ccgi as it does not support this.
The only way is using a .htaccess redirect like you have but that is something that CS cannot do for you.
What you have done should work but others have had similar problems and not found a way to do it, yet others using the same have got it working. We have never understood why it works for some and not others.