views:

33

answers:

1

Hi how do you 301 redirect http:// www.site.com/blog/index.php?id=uu5 to http:// www.newsite.com/ in .htaccess?

Thanks!

+1  A: 

To do a permanent redirection of domain you can use this

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.site.com [nc]
RewriteRule ^(.*)$ http://www.newsite.com/$1 [r=301,nc] 
HoLyVieR
don't forget to enable mod_rewrite
colinmarc