|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
How to make 1 website share 2 urls
I know there is a script but cannot remember the script. I have one page on my primary website, which is a login page for clients that I want to use for another website also. The problem is, I want the url at the top to say the url that the client logs in at on the secondary website so that way they never know that they are actually logging in to the primary website that I am wanting to share the same sql databse for both websites but not the same primary url. I keep trying to do it and everything looks find until they actually login, as soon as they login the secondary url turns in to the primary url giving it away.
|
|
#2
|
|||
|
|||
|
You can use frames.
__________________
Corey Merchant Account Info | Toll-Free Numbers and more My Merchant Account Blog | Merchant Account Show |
|
#3
|
|||
|
|||
|
Quote:
Yes that would work if you are wanting to share one sql |
|
#4
|
||||
|
||||
|
Using "frames" is one way, although the status bar of the browser might reveal the first domain's path while loading your page(s).
If you have access to Apache's configuration file, you could set the "DocumentRoot" directive to share the www folder of the first domain with your second domain. That ways, you have only one set of files in the first domain's www area, while at the same time you're also running the second domain but merely serving files off the www area of the first domain. Hope this helps! ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > How to make 2 websites share one url |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|