Using a name in a URL???

E

Evertjan.

bcap wrote on 27 mrt 2010 in microsoft.public.inetserver.asp.general:
I am interested in learning how to include a name in a domain name.
For example, let's say I have a domain name called www.URLNamingHelp.com
I want to have the following:

http://NameHere.URLNamingHelp.com

or

http://www.URLNamingHelp.com/NameHere

Can you please point me in te right direction?

This has nothing to do with ASP.
[Please do not follow up here]

You will have to set the CNAME, the Canonical Name, record.

Read up here:

<http://myhosting.com/wiki/Modifying_DNS_Records>
<http://en.wikipedia.org/wiki/CNAME_record>
<http://tools.ietf.org/html/rfc1035>

Background:

<http://en.wikipedia.org/wiki/DNS_zone>
<http://en.wikipedia.org/wiki/Domain_Name_System>
<http://en.wikipedia.org/wiki/DNS_management_software>
 
E

Evertjan.

Bwig Zomberi wrote on 29 mrt 2010 in
microsoft.public.inetserver.asp.general:
NameHere is a subdomain. Use your hosting Control Panel for this.

Given that the OP uses a host, and that that host has such panel.

You can even have the www. version of your domain point to another
directory than the root, while the url without www. points to the root.
[The other way around seems not possible?]

=======================================================
NameHere is a directory. Create this folder under your httpdocs or
public folder and put a default document - default.asp, index.asp, or
index.htm there.

That ia one way of doing things.
I often use a server.transfer in my custom 404.asp page.

With this technique it is even easy to have an asp file [with access to a
database or other dynamic content, behind a session login, or with a
serverside coded counter] act and look like a KML file
[or a pdf, a jpg or whatever]:

================= 404.asp ============================
<%
qrefer = Request.ServerVariables("HTTP_REFERER")
if instr(qstr,":80/myKMLs/myKml.kml")>0 then
server.transfer "/myRealAndSecretKMLdirectory/myKml.asp"
end if
%>
<h1>This is my 404 page .......</h1>
======================================================

NOT: the directory /myKMLs/ does not [need to] exist.
 
B

Bwig Zomberi

Evertjan. said:
That ia one way of doing things.
I often use a server.transfer in my custom 404.asp page.


I do this too but it is too early for our friend here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,794
Messages
2,569,641
Members
45,355
Latest member
SJLChristi

Latest Threads

Top