Tuesday, March 27, 2007

Redirecting your website to new link.

kung php
Code:
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>


kung javascript, ung mga given nila above, ok na yun.
kung sa .httaccess

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.new-url.com/$1 [R=301,L]

No comments: