![]() |
|||||||||||||||||||
| Tech News | Business | Forums | Reviews | Blogs | Companies | Classifieds | IT Jobs | Photos | General | ||||||||||
| Control Panel | New Posts | Calendar | RSS | Groups | Tag Cloud | News Headlines | |||||||||||||||||||
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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] |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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 |
![]() |
| Tags |
| apache, hosting, htaccess, linux, php |
|
| Thread Tools | |
| Display Modes | |
|
|