Tim,

If you have the domain registered for mysecondwebsite.com you can use a
script to redirect to a page in your main site like so:

<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"MYSECONDWEBSITE") <> 0 then
response.redirect "mysecondwebsite.html"
end if
%>


This will keep the url as you want it for the main page, but as visitors
navigate to the subdomain directory they will see
mysecondwebsite.com/mysecondwebsite/ unless you use frames.  

I have accepted that the main URL looks good like that and the
subdirectories are named appropriately so that the URL still looks good:
        snpgtechnologies.com/tech
        snpgtechnologies.com/tech/contact
        ...etc.

HTH

Mark


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:Cadieux.Tim@;fin.gc.ca] 
Sent: Friday, October 25, 2002 9:27 AM
To: ActiveServerPages
Subject: Change site url


Is there a way to run a sub web site from my main site, say
www.mywebsite.com/subsite1 <http://www.mywebsite.com/subsite1>
<http://www.mywebsite.com/subsite1 <http://www.mywebsite.com/subsite1> >
but to have the url say www.mysecondwebsite.com
<http://www.mysecondwebsite.com>  <http://www.mysecondwebsite.com
<http://www.mysecondwebsite.com> >  ???

Tim


---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED] To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to