Alias Domain pointing to specific file?
Hi, suppose you have a index.html with the "under construction message" and a index.php as gate to the real content that is under development, both in the root. Then you have an alias domain (crd.agency.com) of the clients real domain (clientsrealdomain.com).
Now, how do you make it open index.html when clientsrealdomain.com ist called and index.php when the alias domain is called??
I got this far:
Through Redirect to /subfolder/ with the subfolder having a framed redirect to the clientsrealdomain.com/index.php. Works but when you hover over the links it shows the clientsrealdomain.com links. Tried masking that but the latest browsers do not seem to like it.
Also tried with htaccess. Works but it shows the clientsrealdomain.com in the address bar of the browsers and the status bar issue is here as well.
When crd.agency.com is called without an index.html or redirect, it points perfectly to the index.php and all links on the website are masked with the alias (incl. address bar and status bar). Now if I could get this to work with an index.html along with the index.php so a "under construction page" can be shown when someone visits clientsrealdomain.com.
So if it would only be possible to point the alias domain specifically to the index.php instead of the /root and therewith the index.html.
(I know what I am trying to do is not the real thing because you can see the real address in the source code etc. but if address bar and status bar links would show crd.agency.com it would be good enough for me)
Any Ideas??? Please!!
You can do this with apache rewrite rules in a .htaccess file. Please see here for different rewrite rule examples:
Yea I know (see my post) but with ISPConfig (3) that's not possible??
It is possible with ISPConfig 3 by using apache rewrite rules.
|All times are GMT +2. The time now is 20:35.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.