Question: I have to recently redirect a site, say Site A to Site B. It should be per page redirection. The site holds top page ranks in related keywords and I am already worried about it.

Since I have done .htaccess redirects in past, it was not a problem in beginning. But now I am facing horror. Searching online took me to only one thread with similar problem and it went unsolved! 

The problem is - after editing redirection in .htaccess in following format:

```
Redirect 301 /url1.html http://siteB.com/url1.html

```

After going to `siteA.com/url1.html`, user is taken to `siteB.com/url1.html/`

This obviously leads to an error. But I do not know what to even search for this problem. It will be a huge loss if I loose ranks here. The site root redirects fine to new site's root.

I hope someone has a solution for it. 

Thanks guys in advance!

Answer: 
I don't see the 'obvious' error, other than that you'd have to write a rule for every url used. Better to use mod\_rewrite:

```
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^newdomain.example.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.example.com/$1 [R=301,L]

```
I've just had this problem and it's because I added `Redirect 301 / http://siteB.com/` at the top. This redirects every link from siteA to siteB.com, regardless of any other redirects below it.