views:

40

answers:

2

I have a deluxe hosting account with Godaddy which allows for multiple sites to be installed on one server.

Problem is the root of the server is a site. www.rootsite.com

when inspecting all other sites on the server (which are in their own folders) with firebug I see www.rootsite.com/newsite instead of www.newsite.com

I would like it to just show www.newsite.com and not make it obvious that im hosting multiple sites on one server.

Thanks to anyone with ideas.

+1  A: 

The fact that you are hosting multiple sites on the same server is obvious from the IP addresses (which probably coincide), if anyone cares.

I didn't understand where exactly do you see "www.rootsite.com/newsite" instead of "www.newsite.com" though.

Roman Cheplyaka
In firebug or just plain old view source. All my absolute links show the root domain instead of the current sites domain. I guess this could just be a reason to use relative links. Bit of a nuisance. Is there another way?
chris
relative links hides what I wanted to hide thx for the response.
chris
So, you are talking about links on your pages. Then nothing (I hope) prevents you from modifying the pages (in case they are static) or configuring your software (in case they are dynamic) to use different base url for links. In other words, it has nothing to do with your hosting.
Roman Cheplyaka
+1  A: 

You will need anyway to make some manual configuration avery time. I use some global PHP file for all (eg newsite.local, newsite2.local, newsite3.local) and one on root domain On root domain You'll need to edit .htaccess and write in some REWRITE or REDIRECTs. And for "newsite" something like this:

<files .htaccess>
order allow,deny
deny from all
</files>
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /newsite.com

# other .htaccess stuff
</IfModule>

same for all other sites

I (am) was using Delux: Linux/Shared/Dedicated/

Here are some more .htaccess tips http://blog.simplemediacode.com/tag/htaccess/

Umbrovskis.com