Reputation: 51
I have a problem witch htaccess i need to redirect just the root site (main page) but not the traffic goin to the other pages.
Example:
Main domain: www.misite.com
(redirect to another.com)
Request from http: www.misite.com/?other-page
(not redirect)
Request from http: www.misite.com/?another-page
(not redirect)
I just move all the traffic from www.misite.com
/ misite.com
to other place, but not the other pages, internal, etc.
Thanks!
Upvotes: 2
Views: 500
Reputation: 143946
Using mod_alias, in either the htaccess or vhost config for the misite.com site.
RedirectMatch 301 ^/$ http://another.com/?
Upvotes: 3