HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Redirecting all Subdomains (http://www.howtoforge.com/forums/showthread.php?t=38300)

maweki 18th August 2009 10:08

Redirecting all Subdomains
 
Hello,

I have several websites on my ISPconfig and I'm getting a hang on it. I have one problem though: I want for one domain to have all subdomains ignored/passed through to the default page in Order to read the subdomain with php and use it for my own purposes/the programer's purposes.

Is that possible?

Greetings
Maweki

till 18th August 2009 12:38

You can redirect domains in a apache webserver with mod_rewrite:

http://httpd.apache.org/docs/2.0/rewrite/

maweki 18th August 2009 12:48

Quote:

Originally Posted by till (Post 201365)
You can redirect domains in a apache webserver with mod_rewrite:

http://httpd.apache.org/docs/2.0/rewrite/

First, Thanks for answering.

The problem is (using ispconfig 2) that the ip-adress is used in more than one place. I have the german localization so I do not know what it would say exactly in english. My message is
Quote:

Diese IP-Adresse wird mehrfach genutzt. Um die gewŁnschte Website zu erreichen, geben Sie ihre Domain anstelle der IP-Adresse in der Adresszeile des Browsers ein.
So as I get it, ispconfig does not know that all the subdomains (and not only www) do belong to that Website.

I know how to use the subdomains but the problem is, that ispconfig does not redirect the subdomains to the common domain.

falko 19th August 2009 13:31

What's the output of
Code:

ifconfig
, and what's in your Vhosts_ispconfig.conf?


All times are GMT +2. The time now is 11:06.

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