473,386 Members | 1,644 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,386 software developers and data experts.

Redirecting Forwarded Domain to a Subfolder

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 can recognize that it is actually forwarded to by Domain2 and redirect to
a subfolder of the actual site: http://domain1.com/domain2/default.aspx?

Using IE, when I type in Domain2.com and the default page appears from
Domain1, the address line in IE *does* say Domain2.com

I hope this wasn't too confusing, and I am use the way to check in my
default.aspx page will be easy, but I don't know what to check. I have no
problems with the redirection aspect, just recognizing when it should do the
redirect.

Thanks for any assistance,
-Johnnie
Nov 18 '05 #1
0 991

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

Similar topics

7
by: jason | last post by:
I am getting twisted by the possibility that my virtual includes which currently work great on non-domain remote IP will crash if I purchase a domain and point it to one of my designated...
0
by: | last post by:
Could someone tell me if there is any reliable server variable that returns the Domain Name + Path in ASP? I have tried: Request.serverVariables("URL") Request.serverVariables("PATH_INFO") ...
6
by: Andy | last post by:
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...
1
by: chewster | last post by:
Hi. I'm very new to the .htaccess and currently trying to figure this out. I'd like to redirect a parked domain to a sub domain or a folder without showing the actual address location. So far I'm...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
4
by: nospam | last post by:
Hello everyone - Newbie here with another dumb question :-) I want to have several apps under 1 domain - basically the domain root for general users and then an "admin" folder with a database...
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...
9
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
2
by: megahurtz | last post by:
Is there any way using either Apache or some other method that I can redirect requests to a specific subfolder to another URL? For example, when somebody types in http://www.mydomain.com/email...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.