X   Site Message
(Message will auto close in 2 seconds)
Advertisement
 
Reply to this topicStart new topic
> Making a website alias folder on your webspace??
ratkat
post Mar 6 2008, 06:45 PM
Post #1


Advanced Member
***

Group: Members
Posts: 1,872
Joined: 2-November 03
Member No.: 43,921



I have 2 domain names and have bought one web host (consisting of 2 DNS numbers) - I think it's possible to have the 2nd website stored there as an "alias" (so when the 2nd www address is typed in by someone, it goes straight to the alias folder and accesses the index file in that folder) so I don't have to buy additional web hosting space, but I don't know how to do this - obviously the web host doesn't want to help me as they want me to buy more space. Tried googling but couldn't find any simple instructions regarding this - anyone know how to do it?? Is it simple to do or do you need to be a bit of a programmer to get it working??
Go to the top of the page
 
+Quote Post
sun-n-fun
post Mar 6 2008, 08:49 PM
Post #2


Advanced Member
***

Group: Expatica Moderators
Posts: 1,387
Joined: 16-November 03
Member No.: 45,093



QUOTE (ratkat @ Mar 6 2008, 05:45 PM) *
I have 2 domain names and have bought one web host (consisting of 2 DNS numbers) - I think it's possible to have the 2nd website stored there as an "alias" (so when the 2nd www address is typed in by someone, it goes straight to the alias folder and accesses the index file in that folder) so I don't have to buy additional web hosting space, but I don't know how to do this - obviously the web host doesn't want to help me as they want me to buy more space. Tried googling but couldn't find any simple instructions regarding this - anyone know how to do it?? Is it simple to do or do you need to be a bit of a programmer to get it working??


Lets start here. Assume that one domain is ratkat.com and the other is cat.com.

Usually it is best to have ratkat.com and www.ratcat.com point to the same website. That is the convention.

Yes, it should be such that ratkat.com and any cname (not alias) points to the same folder.

And cat.com could point to another folder.

The folders associated with each domain have to be specified on the server. Yes, it is simple.

If your web person does not want to help you, go to one that does.

i.e. Domain Names and Tools

Feel free to ask any other questions.


--------------------
Go to the top of the page
 
+Quote Post
ratkat
post Mar 7 2008, 06:35 PM
Post #3


Advanced Member
***

Group: Members
Posts: 1,872
Joined: 2-November 03
Member No.: 43,921



QUOTE (sun-n-fun @ Mar 6 2008, 07:49 PM) *
Lets start here. Assume that one domain is ratkat.com and the other is cat.com.

Usually it is best to have ratkat.com and www.ratcat.com point to the same website. That is the convention.

Yes, it should be such that ratkat.com and any cname (not alias) points to the same folder.

And cat.com could point to another folder.

The folders associated with each domain have to be specified on the server. Yes, it is simple.

If your web person does not want to help you, go to one that does.

i.e. Domain Names and Tools

Feel free to ask any other questions.


Thanks - unfortunately, I already paid for this webhost server so want to stick with it for now. For my 2nd www address, I can assign 2 DNS numbers to it. Is there a way I can use the DNS numbers from my main site, but with some addition that will have it access a different folder's "index.html" file in the htdocs?? I believe my previous web guy did this with a folder like "website 2 alias" and inside that was all the html for the second site - I just don't know how he got the url to point to that alias folder - anyone know how to do this??




Go to the top of the page
 
+Quote Post
fatcontroller
post Apr 21 2008, 02:42 AM
Post #4


Advanced Member
***

Group: Members
Posts: 73
Joined: 6-April 08
From: Netherlands
Member No.: 73,311



Unfortunately what you are asking needs to be done on the hosting server config. It's more commonly known as a Virtual Hosting.

The logic is - If somebody arrives by following ratkat1.com then display a certain folder/index.html. If they arrived by typing ratkat2.com then display another folder/index.html.

I assume the IP address for both domain names are the same?
Go to the top of the page
 
+Quote Post
drunk
post Apr 21 2008, 01:44 PM
Post #5


Advanced Member
***

Group: Members
Posts: 77
Joined: 5-July 07
From: Netherlands
Member No.: 57,354



2 ways of doing it

1) you get your isp to fiddle with the dns entry that will take care of it for you, but you may have to pay them, also it wont take effect immediatley as I think sprint only refreshes 2 times a day then the time to propogate the changes to the rest of the world

2) an easier way
no time delay for change
just look at this link
http://www.allprofitallfree.com/meta-refresh.html

say you domain aaa.com and domain bbb.com
all your main site is at aaa.com - unfortunately you would have to have minimum diskspace on bbb.com just for a single file

if default document on bbb.com is index.html edit it and slap a meta tag like
<meta http-equiv="refresh" content="5; url=www.aaa.com">
within the <head> section this will redirect from bbb.com to aaa.com in 5 seconds
you can set 0 seconds or whatever
Go to the top of the page
 
+Quote Post
fatcontroller
post May 1 2008, 05:04 PM
Post #6


Advanced Member
***

Group: Members
Posts: 73
Joined: 6-April 08
From: Netherlands
Member No.: 73,311



No, there is no way to do this without paying money for additional hosting services.

1) They will charge you for a Virtual Host ie a 2nd host. DNS is not aware of folders on web servers. You should ultimately own your DNS name so you can have it updated in any way you like.

2) Buy a 2nd host to redirect users on to your 1st host. Bit of a waste of time. (Redirection will do exactly that. Redirect you from one host to another. If you use a redirect in your main index.html header it will redirect all traffic to somewhere else. It can't tell which domain name your visitor typed in their browser).

If you could buy 1 host from an ISP, and then host as many web sites as you liked, the whole world would use one host. Me included wink.gif

Many people also incorrectly refer to a mysterious 48 hour or 72 hour propagation time when you make a DNS change. When one changes the NS records for one's domain or the IP addresses for hostnames of authoritative DNS servers using one's domain (if any), there can be a lengthy period of time before all DNS servers use the new information. This is because those records are handled by the zone parent DNS servers (for example, the .com DNS servers if your domain is example.com), which typically cache those records for 48 hours. However, those DNS changes will be immediately available for any DNS servers that do not have them cached. And any DNS changes on your domain other than the NS records and authoritative DNS server names can be nearly instantaneous, if you choose for them to be (by lowering the TTL once or twice ahead of time, and waiting until the old TTL expires before making the change).
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: