Redirecting only domain root


#1

Hi.
I’m using domain redirect.
My domain www.mydomain.com is redirecting to www.newdomain.com.
But i don’t want sub-dirs to be redirected.
e.g.: www.mydomain.com/images/image.jpg should not be redirected to www.newdomain.com/images/image.jpg.

How can i do that?


#2

In .htaccess

RedirectMatch ^/$ http://somewhere

Here is link to documentation: http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch

:cool: openvein.org -//-