Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11th June 2010, 16:55
jas jas is offline
Junior Member
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy 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.

I also tried JavaScript and PHP too with HTTP_Host etc. nothing works.

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!!
Reply With Quote
Sponsored Links


alias, pointing, redirect, sub domain, to file

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 15:49
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 22:13
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 19:16
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 21:43
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40

All times are GMT +2. The time now is 02:30.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.