301 Redirect Problem?
Posted by Thomas | Posted in questions | Posted on 23-09-2009
Tags: Problem, Redirect
2
I am trying to set up a 301 redirect to my new website. Problem is I’ve changed all the file names, so I can’t just have an automatic one. I’ve seen scripts for php or asp or coldfusion to fix this, but my pages are in .html and don’t support and don’t support php, asp, etc. I want to keep my search engine rankings and tell search engines my page is permanently moved. Can anyone give me a script to do this? Thanks!





























add this meta inside your
and inside the
type the message..”this page is moved to new location.. you will be redirected soon…..or whatever u want
PHP Redirect
< ?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com” );
?>
if your webserver dosen`t allow php , create a file called .htaccess in the root directory of your old website and put this in
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]