View Full Version : Redirecting all Subdomains
maweki
18th August 2009, 11:08
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, 13:38
You can redirect domains in a apache webserver with mod_rewrite:
http://httpd.apache.org/docs/2.0/rewrite/
maweki
18th August 2009, 13:48
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
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, 14:31
What's the output of ifconfig, and what's in your Vhosts_ispconfig.conf?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.