| Subcribe via RSS


domain redirection

May 20th, 2008 | No Comments | Posted in SEO, apache, server by dreamluverz


As far as SEO is concerned 301 redirect is the most effecient way of domain redirection.

Some ways of doing it:

PHP Redirect

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>

.htaccess

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Check out here for other languages

other reference : http://www.somacon.com/p145.php

Tags: ,