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
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Fullname:
Email: (Optional)
Comments:
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Knowledgebase
Language:
English (U.S.)