|
I figured out where the problem was. At RewriteRule the RegExp applies only to the part of URL after host name which was very hard to find. The correct entry looks as follows:
RewriteEngine On
RewriteCond %{REQUEST_URI} !php$
RewriteRule (.+) http://www.mydomain2.com%{REQUEST_URI} [R]
The key point was (.+) which means 1 or more chars after the domain what guaranties that the RewriteRule will take an effect if there will be anything after www.domain1.com/
|