tags:

views:

21

answers:

1

How can I redirect all requests (irrespective of what page is being requested) on sub.domain.com to newdomain.com? Currently I have

Redirect 301 / http://www.newdomain.com/

When a requests comes in for domain.com/shop/product the redirect goes to newdomain.com/shop/product while it should just go to newdomain.com

+1  A: 

Use Rewrite:

RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/ [R=301,L]
Sven Koschnicke