Broadband & ADSL  Forums - Internet, Gaming, Hardware, Software
Tech News Business Forums Reviews Blogs Companies Classifieds IT Jobs Photos General  
     Control Panel   |    New Posts    |   Calendar   |   RSS   |   Groups   |   Tag Cloud   |   News Headlines   

Go Back   Broadband & ADSL Forums - Internet, Gaming, Hardware, Software > General discussions > Off topic


Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2009, 12:42 PM
Antondiq Antondiq is offline
Member
 
Join Date: Jul 2009
Location: Gauteng, Chancliff
Posts: 19
Default Multiple domains, one hosting account - Serious problem

Hey guys,

I have 1 hosting account, which allows multiple domains... and Ive got 4 domains attached to that hosting account.

Problem is domain1 has regular visitors, and Im starting a campaign on monday on domain 2, already printed and distributed

and when I enter

domain1.com into the browser everything works fine as it should

domain2.com goes back to domain1.com
domain2.com/index.php goes to the right place.

domain3.com goes back to domain1.com
domain3.com/index.php goes to the right place.

How can I fix this?
Reply With Quote
  #2  
Old 07-11-2009, 12:58 PM
rorz0r rorz0r is offline
Master
 
Join Date: Feb 2006
Posts: 743
Default

On you hosting account do you have seperate directories set up for each domain?
eg. Domain1 : /home/domain1/public_html/
Domain2: /home/domain1/public_html/domain2

Or how is it set up? Are there any htaccess files in these directories?
Reply With Quote
  #3  
Old 07-11-2009, 01:02 PM
davemc davemc is offline
Grandmaster
 
Join Date: Apr 2009
Location: Ramsgate KZN
Posts: 3,347
Default

You want us to guide you through setting up the web hosting platform to support vhosts correctly.
And, you want us to do it without you even telling us what the web server software is.

Need much much much more info.
Reply With Quote
  #4  
Old 07-11-2009, 01:20 PM
Antondiq Antondiq is offline
Member
 
Join Date: Jul 2009
Location: Gauteng, Chancliff
Posts: 19
Default Okay, some more info on the problem

Hey, okay, you guys are quick :-P I love mybroadband. Okay. yes, I can use htaccess files on the server and in the folders.

I've got subfolders in the main domain

domain1.com/domain2
domain1.com/domain3
domain1.com/domain4

It is on a godaddy account which supports multiple domains. Their support is useless and directs me to the wrong pages, I think they're not actually reading my messages. Probably an automated response somehow. Anyway, I cant move to another hosting company, my campaign begins in this week, monday in fact.

Any help would be nice. Thank you guys...

Im just a web designer and do not know much about dns a records etc. and Godaddy seems to think I'm very clued up, judging by their descriptions and replies.

Ive done this too
Adding a domain to this hosting account lets visitors access your content through a new URL. Deluxe and Premium plans can point an added domain to any new or existing subdirectory or nested subdirectory. To point this domain to the root ("/"), leave the default Folder setting.

Ive done this too

domain2.com >> domain1.com/domain2
domain3.com. >> domain1.com/domain3
domain4.com >> domain1.com/domain4

As I said,
domain2.com goes to domain1.com
but domain2.com/index.php goes to the correct place as for the other two domains
Reply With Quote
  #5  
Old 07-11-2009, 01:24 PM
Antondiq Antondiq is offline
Member
 
Join Date: Jul 2009
Location: Gauteng, Chancliff
Posts: 19
Default

By the way, the current htaccess in the main root folder looks like this

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

RedirectMatch 301 (.*)\.html$ http://www.domain.com$1.php

RewriteRule ^rule$ ... [NC]
Reply With Quote
  #6  
Old 07-11-2009, 03:10 PM
rorz0r rorz0r is offline
Master
 
Join Date: Feb 2006
Posts: 743
Default

Ok well that's why it doesn't work

Do you need those options specified in .htaccess? (basically to replace .html with .php)
If not then just try removing the file or at least all except the first line.

If you do need it then try making a copy of that file, replacing domain with domain2 and then placing the new file in the domain2 folder.
Reply With Quote
  #7  
Old 08-11-2009, 12:39 AM
Antondiq Antondiq is offline
Member
 
Join Date: Jul 2009
Location: Gauteng, Chancliff
Posts: 19
Default Yeah

Hi there

yeah, I need those rewrite conditions, as there are too many pages and links to have to go and change them all to php pages and rename all the links...

Okay, I'll try that and see if it works...

Thanks hey
Reply With Quote
Reply

Tags
apache, hosting, htaccess, linux, php

Forum Sponsor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:38 AM.


Gaming News | Games Forum | Broadband Deals | Terms & Conditions

© 2009 MyBroadband. All rights reserved.