473,396 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Forwarded URL issue

Hi All,
I have a domain name assume "www.domainnew.com" which I
am forwarding to "www.domainold.com/new" with mask.
It works fine. My problem is I have a page call login.asp
in the directory new.(I don't want to give the link from
www.newdomain.com) I want the admin to go directly to
www.domainnew.com/new/login.asp.(which I cannot)and not
through www.domainold.com/new/login.asp (which I can).
Any help will be great.

Thanks
Andy
Jul 19 '05 #1
6 1376
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

"Andy" <an********@yahoo.com> wrote in message
news:04****************************@phx.gbl...
Hi All,
I have a domain name assume "www.domainnew.com" which I
am forwarding to "www.domainold.com/new" with mask.
It works fine. My problem is I have a page call login.asp
in the directory new.(I don't want to give the link from
www.newdomain.com) I want the admin to go directly to
www.domainnew.com/new/login.asp.(which I cannot)and not
through www.domainold.com/new/login.asp (which I can).
Any help will be great.

Thanks
Andy

Jul 19 '05 #2
Thanks Ray,
This is shared hosting with godaddy.com. I can't create
virtul directory.

Thanks
Andy
-----Original Message-----
After recovering from my dizziness, I think I concluded that you couldcreate a virtual directory in domainnew.com called "new" that points to thephysical root of your site to do this.

Ray at work

"Andy" <an********@yahoo.com> wrote in message
news:04****************************@phx.gbl...
Hi All,
I have a domain name assume "www.domainnew.com" which I
am forwarding to "www.domainold.com/new" with mask.
It works fine. My problem is I have a page call login.asp in the directory new.(I don't want to give the link from www.newdomain.com) I want the admin to go directly to
www.domainnew.com/new/login.asp.(which I cannot)and not
through www.domainold.com/new/login.asp (which I can).
Any help will be great.

Thanks
Andy

.

Jul 19 '05 #3
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

"Andy" <an*******@discussions.microsoft.com> wrote in message
news:86****************************@phx.gbl...
Thanks Ray,
This is shared hosting with godaddy.com. I can't create
virtul directory.

Thanks
Andy
-----Original Message-----
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

"Andy" <an********@yahoo.com> wrote in message
news:04****************************@phx.gbl...
Hi All,
I have a domain name assume "www.domainnew.com" which I
am forwarding to "www.domainold.com/new" with mask.
It works fine. My problem is I have a page call login.asp in the directory new.(I don't want to give the link from www.newdomain.com) I want the admin to go directly to
www.domainnew.com/new/login.asp.(which I cannot)and not
through www.domainold.com/new/login.asp (which I can).
Any help will be great.

Thanks
Andy

.

Jul 19 '05 #4
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
-----Original Message-----
Alright, how about a response.redirect then? If this is not possiblebecause of the way things are setup, can you carefully re- explain your setuphere paying special attention to your sample domain names? You have threedifferent domain names in your sample below, but I believe you only actuallymeant to indicate you have two, correct?

Ray at home

"Andy" <an*******@discussions.microsoft.com> wrote in messagenews:86****************************@phx.gbl...
Thanks Ray,
This is shared hosting with godaddy.com. I can't create
virtul directory.

Thanks
Andy
>-----Original Message-----
>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
>
>"Andy" <an********@yahoo.com> wrote in message
>news:04****************************@phx.gbl...
>> Hi All,
>> I have a domain name assume "www.domainnew.com"

which I >> am forwarding to "www.domainold.com/new" with mask.
>> It works fine. My problem is I have a page call

login.asp
>> in the directory new.(I don't want to give the link

from
>> www.newdomain.com) I want the admin to go directly to
>> www.domainnew.com/new/login.asp.(which I cannot)and not >> through www.domainold.com/new/login.asp (which I can). >> Any help will be great.
>>
>> Thanks
>> Andy
>
>
>.
>

.

Jul 19 '05 #5

"Andy" <an*******@discussions.microsoft.com> wrote in message
news:8e****************************@phx.gbl...
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
Jul 19 '05 #6
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
-----Original Message-----

"Andy" <an*******@discussions.microsoft.com> wrote in messagenews:8e****************************@phx.gbl...
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 physicalsite 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" OrUCase(Request.ServerVariables("SERVER_NAME")) = "WWW.DOMAINOLD.COM" ThenResponse.Redirect "http://www.domainnew.com/new/login.asp"
%>

Ray at work
.

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sergey Antonyuk | last post by:
Hello, how can i read "X-Forwarded-For" header information in ASP? Thank you
1
by: anuke | last post by:
Hello, how can i read "X-Forwarded-For" header information? Thank you
0
by: Johnnie Norsworthy | last post by:
I have a web site Domain1.com and a secondary domain, Domain2.com that is forwarded by my registrar to Domain1.com. Using my primary home page: http://domain1.com/default.aspx is there a way I...
2
by: =?Utf-8?B?QW5kcsOp?= | last post by:
I have a domain www.lomas21.es. That domain is masked forwarded, by the server, to the real stuff at www.solicon.com.es/lomas21/ AJAX is only working: - When you go to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.