Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
PHP:<?php header("HTTP/1.0 301 bounce"); header("Location: http://domain.com"); header("Connection: close"); ?>
or you could do it via .htaccess
Which one is the most google-friendly, the .htaccess method?
AddType x-mapp-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule (.*) http://mydomain.info/$1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress