The installation is like that :
site2 is in a subdirectory of the site1 root.
The .htaccess are already rewrited base :
site1.com .htaccess :
`
<IfModule mod_autoindex.c>
IndexIgnore *
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^.*/?$ index.php [L,QSA]
</IfModule>
RewriteCond %{HTTP_HOST} ^site2.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.site2.com$
RewriteRule ^/?$ "http\:\/\/www\.site1\.com\/site2/" [R=301,L]
`
site2.com .htaccess :
`
<IfModule mod_autoindex.c>
IndexIgnore *
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /site2
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^.*/?$ index.php [L,QSA]
</IfModule>
`
But when I try to connect to site2.com, I'm redirected to site1.com.
Something must be wrong, but... what ?