Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Archived topic redirects
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1163 Posts

Posted - 06 October 2009 :  03:45:39  Show Profile  Visit bobby131313's Homepage
Is there a reason that I'm not aware of that they throw a 302 instead of a 301? 99.9% of the time the move is permanent.

Switch the order of your title tags

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 06 October 2009 :  07:53:24  Show Profile  Visit HuwR's Homepage
you would need to change the response.redirect() code to something like

Response.Status = "301 Moved Permanently"
Response.addheader "Location", UrlToredirectto
Response.End

I don't have access to the forum code here, but will post exactly what/where to put it when I get home.
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 06 October 2009 :  14:58:50  Show Profile  Visit bobby131313's Homepage
I think I got it. In topic.asp I changed this....


if recTopicCount = "" then
	if ArchiveView <> "true" then
		Response.Redirect("topic.asp?ARCHIVE=true&" & ChkString(Request.QueryString,"sqlstring"))
	else
		Response.Redirect StrForumUrl
	end if
end if


To this...


if recTopicCount = "" then
	if ArchiveView <> "true" then
		Response.Status = "301 Moved Permanently"
		Response.AddHeader "Location",("topic.asp?ARCHIVE=true&" & ChkString(Request.QueryString,"sqlstring"))
		Response.End 
	else
		Response.Redirect StrForumUrl
	end if
end if



It's throwing a 301 now and nothing seems to be broken. Look OK?

Switch the order of your title tags
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 06 October 2009 :  15:28:57  Show Profile  Visit HuwR's Homepage
yep, looks ok.
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 06 October 2009 :  15:54:06  Show Profile  Visit bobby131313's Homepage
Thanks!

Switch the order of your title tags
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 21 December 2009 :  19:38:58  Show Profile  Visit bobby131313's Homepage
Just compared the difference in archived topic Google referrals from October to December since this change. It's incredible.

All the "too many redirects" error messages have disappeared from my Webmaster tools and I now get a referral straight to an archived topic every few minutes. Sweet!

Apparently Google gets tired of either too many temporary redirects or tired of waiting if they're there too long and just deindexes the page.

Switch the order of your title tags
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07