Re: htaccess serving different domain with different front controllers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux