Ecommerce software, solutions and
development 06 Sep 2010 
Support Center » Knowledgebase » Manually 301 obsolete categories
 Manually 301 obsolete categories
Solution If you're renaming/moving popular categories with URL rewriting, this will change the URL potentially leading to a loss in search engine ranking and some customers coming through to invalid links for a while.

The software doesn't have any features to handle this, but manual redirects can be handled by adding such code into the products.asp. This requires both knowledge of the url rewritten and non url rewritten linking methods.

<%
if request.servervariables("QUERY_STRING") = "category=old+category&subcategory=old+subcategory" then
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", session("path_info") & "pcp/New_Category.html"
Response.End
elseif request.servervariables("QUERY_STRING") = "category=old_category&subcategory=old_subcategory" then
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", session("path_info") & "pcp/New_Subcategory"
Response.End
end if
%>


Article Details
Article ID: 114
Created On: 13 Oct 2009 10:22 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Knowledgebase
Language:

If your issue is urgent, you may wish to phone technical support on :
Tel: 0845 225 2125 (int +44 20 3031 2873)
Fax: 0709 2035354