Forwarded URL issue

R

Ray Costanzo [MVP]

After recovering from my dizziness, I think I concluded that you could
create a virtual directory in domainnew.com called "new" that points to the
physical root of your site to do this.

Ray at work
 
A

Andy

Thanks Ray,
This is shared hosting with godaddy.com. I can't create
virtul directory.

Thanks
Andy
 
R

Ray Costanzo [MVP]

Alright, how about a response.redirect then? If this is not possible
because of the way things are setup, can you carefully re-explain your setup
here paying special attention to your sample domain names? You have three
different domain names in your sample below, but I believe you only actually
meant to indicate you have two, correct?

Ray at home
 
A

Andy

Thanks Ray,
You are right I made a mistake there's only 2 domain
1. "www.domainnew.com"
2. "www.domainold.com"
www.domainold.com is my original domain and I just added
domainnew.com. My host is winsave.com and my domain
registrar is godaddy.
I created a new directory in olddomain and I am forwarding
newdomain.com to domainold.com.new with mask.
Everything works fine so far.
Now I have an admin login page for domainnew.com with
login.asp page.
I want somehow the admin to this domain to go to the
login.asp page directly from domainnew.com/new/login.asp.
Which I am not sure how to do this. I can go
domainold.com/new/login.asp. But I don't want this way.
Once again thanks for trying to help.
(Redirect will not work here, unless I am missing
something)
Thanks
Andy
 
R

Ray Costanzo [MVP]

Andy said:
Thanks Ray,
You are right I made a mistake there's only 2 domain
1. "www.domainnew.com"
2. "www.domainold.com"
www.domainold.com is my original domain and I just added
domainnew.com. My host is winsave.com and my domain
registrar is godaddy.
I created a new directory in olddomain and I am forwarding
newdomain.com to domainold.com.new with mask.

What is mask?

And are you saying that these two domains are actually the same physical
site on the server, just with two domains?

What about in login.asp, doing:

<%
''assuming you don't have to deal with SSL
If UCase(Request.ServerVariables("SERVER_NAME")) = "DOMAINOLD.COM" Or
UCase(Request.ServerVariables("SERVER_NAME")) = "WWW.DOMAINOLD.COM" Then
Response.Redirect "http://www.domainnew.com/new/login.asp"
%>

Ray at work
 
A

Andy

Yes they are 2 different domain on the same box but
different folder serving 2 different sites.
Mask let me retain the domain name in URL, so the user
does not know he is forwarded to different site.
Login.asp page not for general public just for admin to go
to the site and approve or disapprove things. I don't want
general public to know about this page for security
reasons.
I am not sure where will I put the script you gave me.
Andy
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top