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.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th June 2010, 15: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
  #2  
Old 13th June 2010, 15:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

You can do this with apache rewrite rules in a .htaccess file. Please see here for different rewrite rule examples:

http://httpd.apache.org/docs/2.0/vhosts/examples.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th June 2010, 17:11
jas jas is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yea I know (see my post) but with ISPConfig (3) that's not possible??
Reply With Quote
  #4  
Old 14th June 2010, 09:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
 
Default

It is possible with ISPConfig 3 by using apache rewrite rules.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
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 14:49
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40


All times are GMT +2. The time now is 13:38.


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