httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james cauwelier <>
Subject [users@httpd] htaccess serving different domain with different front controllers
Date Thu, 24 Sep 2009 06:43:54 GMT
Hi All,

I am developing a website  which has different front controllers:

- web/index.php for the main website
- web/sioen.php for a copy of the website with different looks

I don 't seem to be able to redirect the correct host to the correct
controller and I am hoping that somebody can help me.
I would appreciate any help and am willing to return the favor in the
form of Symfony Framework or general PHP support.

Here is my .htaccess (I deleted unimportant parts from my colleague),
I suspect the line with [S=1] is to blame:

Options -Indexes

RewriteEngine On

RewriteRule ^plugins/PhpMyAdmin/(.*)$ plugins/PhpMyAdmin/$1 [L]

# subdir web = root
RewriteCond %{REQUEST_URI} !web/
RewriteRule (.*) web/$1 [L]

# redirect only when file not found
RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{HTTP_HOST}  ^sioen.* [S=1]

RewriteRule ^(.*)$ /web/index.php?command=$1 [QSA,L]
RewriteRule ^(.*)$ /web/sioen.php?command=$1 [QSA,L]

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message