So it looks like we're still on track for a St. George's Day PR update? Wa hey - my winnings are practically in the bank already!
301 In ASP <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", http://www.yoururl.com %>
301 IN PHP header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.yoururl.com"); exit();
301 In ASP.Net <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.yoururl.com"); } </script>
(This assumes you are using the Apache webserver. If you are not… you should be.) If you are the server admin and have direct access to the apache configuration file you can just put in: redirect 301 / http://www.you.com/ in the VirtualHost Directive. If you have a .htaccess file: just put this as the last line after your other rules. redirect 301 / http://www.you.com/ The first “/†indicates that everything from the top level of the site down should be redirected. As long as you are using the same paths and filenames, then this option is a very simple way to perform site redirection in the situation where you have only changed your domain name.
ok i can say pr update will start today may be i see some data center give me pr 0 it wasnt yesterday give that 59.151.21.100>0 66.249.93.107>0 72.14.205.189>0 66.102.7.160>0
The question was about redirecting from domain.com to www.domain.com so I don't think these suggestions will work. Matt Cutts blog post includes links to two pages with instructions on how to do this: http://www.beyondink.com/howtos/301-redirect.html Apache This solution will redirect any page requested via a non-www domain to the same URL with the www domain, and as such it can be placed in the DocumentRoot of your site and will be enforced globally: RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] Code (markup): PHP 4 and PHP 5 <?php if (substr($_SERVER['HTTP_HOST'],0,3) != 'www') { header('HTTP/1.1 301 Moved Permanently'); header('Location: http://www.'.$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI']); } ?> PHP: Active Server Pages (ASP) This code should be inserted into a global include file or any ASP script which is executed for every page on the site before the page output begins: <% If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www." & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME") End if %> Code (markup):
Thanks for the post. Much appreciated. I thought something was going on, didn't know quite sure what it was. thx
I am seeing huge changes in lots of DC's. I have a pr3 blog and lot of dc r showiing pr0 and others pr4. wats happening.is this just a BL update or a PR update?The same thing happened in the last pr update.I m new to the PR thing so could someone explain it to me?
i have read this thread .I checked my pr with this tool http://livepr.raketforskning.com/?u=http://www.dvasports.com/ and Pr in lots of DC are flutuation like it did in the last PR update I am really confused so..just wanted some info from other ppl.
http://www.mattcutts.com/blog/seo-advice-url-canonicalization/ January 4, 2006 http://www.mattcutts.com/blog/canonicalization-update/ March 26, 2007 Maybe this thread has more focus on "FindWhat has different www vs. non-www pages" and saying "that was not PR update".