httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james cauwelier <james.cauwel...@gmail.com>
Subject Re: [users@httpd] Re: htaccess serving different domain with different front controllers
Date Fri, 25 Sep 2009 06:07:47 GMT
Thanks Nick,

But this is a solution I already thought off, except in PHP.  Anyway,
I think it is cleaner to put this kind of things in .htaccess,
especially when a client needs about 6 different domain for one
particular front controller.

But thanks for the input.

James

2009/9/24  <Nick@sosnow.ws>:
>  Hi James,
>   > - web/index.php for the main website
>   > - web/sioen.php for a copy of the website with different looks
>
>     An alternative:  ( I'd use perl to do this )
>
>     index.cgi (or index.pl)
>        $lowerCase = lc($ENV{'HTTP_HOST'});
>         if ($lowerCase =~ /sioen/) {
>          $Page = "sioen";
>         } else {
>          $Page = "index";
>         }
>
>   then do what you need to do with /web/$Page.php?command=$1
>
>                                                      Nick.
. .
>   ( Ich kann das klavier spielen ) :)
>
>   _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
>                        .  .  .  .  .  .  .  .
>   Please visit my Web Hosting/Design Business at: http://MyHost.org
>          -=[  The prices are great - as is the service  ]=-
>                        .  .  .  .  .  .  .  .
>   ...---... (Stamp Out Spam and Save Our Servers)  http://sosNow.ws
>                        .  .  .  .  .  .  .  .
>   _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message