iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2006, 12:48 PM
pagetta's Avatar
WebProWorld Veteran
 
Join Date: Nov 2004
Location: UK
Posts: 509
pagetta RepRank 2
Default google friendly redirects

we have on our existing site some asp pages and on our redeisgn these will no longer exist, so we need a redirect. Will the following be google friendly:

<%

if(Request.querystring("WCI") = "xxxx") then
Response.redirect("http://www.mysite.com/newpage1.html")
end if

if(Request.querystring("WCI") = "xxxx") then
Response.redirect("http://www.mysite.com/newpage2.html")
end if

%>

I intend to block robots from crawling this page any more in the robots.txt file and hope to see if drop from the serps and the new pages climb up in the rankings instead. The main purpose for this redirect is the multitude of IBLs built to these pages which we do not want to lose.

any tips on situations like this?

thanks guys :-)
Reply With Quote
  #2 (permalink)  
Old 05-03-2006, 08:12 PM
WebProWorld Veteran
 
Join Date: Oct 2004
Posts: 437
wednesday RepRank 0
Default Re: google friendly redirects

I know next to nothing about vb but looks like you're going to implement a temporary redirect here.

Verify the result here http://www.seoconsultants.com/tools/headers.asp


Code:
<%
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.somacon.com/"
Response.End
%>
http://www.somacon.com/p145.php

Quote:
Originally Posted by pagetta
I intend to block robots from crawling this page any more in the robots.txt file and hope to...
Don't do it. You won't let the bots be aware of the redirect if forbid them to crawl the old url.Just implement 301 redirect, sitback and wait for a few months?! or so.
__________________
Dedicated Server VPS Hosting
Reply With Quote
  #3 (permalink)  
Old 05-03-2006, 10:39 PM
WebProWorld Pro
 
Join Date: Aug 2005
Location: Shasta lake, California
Posts: 132
adacprogramming RepRank 0
Default

wednesday is right, you are showing a temporary redirect. this is how dot net does it
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
response.status = "301 moved permanently";
Response.AddHeader("Location","http://www.domain.com/file-location.html");
}
</script>
The other way you can do it is in IIS with a windows server or httaccess (something like that) in linux
Reply With Quote
  #4 (permalink)  
Old 05-04-2006, 05:31 AM
pagetta's Avatar
WebProWorld Veteran
 
Join Date: Nov 2004
Location: UK
Posts: 509
pagetta RepRank 2
Default

ok thanks for that advice - now here's the question....how do I do a 301 redirect? especially for dynamic URLs such as these? where does the script go and what should it say?
Reply With Quote
  #5 (permalink)  
Old 05-04-2006, 12:03 PM
pagetta's Avatar
WebProWorld Veteran
 
Join Date: Nov 2004
Location: UK
Posts: 509
pagetta RepRank 2
Default

ok I have the 301 redirect doe working, but I need to know how to include script so that if the link is www.mysite.com/page.asp?product1 it goes to one page, and if it is www.mysite.com/page.asp?product2 it goes to another page...
Reply With Quote
  #6 (permalink)  
Old 05-04-2006, 12:16 PM
pagetta's Avatar
WebProWorld Veteran
 
Join Date: Nov 2004
Location: UK
Posts: 509
pagetta RepRank 2
Default

All done I used this script:

if(Request.querystring("WCI") = "Number1") then
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.mysite.com/number1"
Response.End
end if

if(Request.querystring("WCI") = "Number2") then
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.mysite.com/number2"
Response.End
end if

Does anyone else find this site a bit like 'talking to the monkey'? You know how the minute you ask someone something it suddenly occurs to you how to do it, well I always thought a lot of developers have little toy animals or trinkets on their desk so that they can just ask them and then work it our instead of having to find someone to ask everytime they get stuck - me and my course mate used to call it talking to the monkey anyone else get that phenomenen?
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:23 PM.



Search Engine Optimization by vBSEO 3.3.0