<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>ProductCart Shopping Cart Software Forums : 301 Redirect</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Customizing ProductCart : 301 Redirect]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 08 Apr 2026 13:54:29 +0000</pubDate>
  <lastBuildDate>Thu, 19 Aug 2010 14:38:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.productcart.com/RSS_post_feed.asp?TID=3308</WebWizForums:feedURL>
  <image>
   <title><![CDATA[ProductCart Shopping Cart Software Forums]]></title>
   <url>https://forum.productcart.com/forum_images/pc_logo_50.png</url>
   <link>https://forum.productcart.com/</link>
  </image>
  <item>
   <title><![CDATA[301 Redirect :   Additional question to this...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post15301.html#15301</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 19-August-2010 at 2:38pm<br /><br />Additional question to this issue...<br>While the given code works perfectly (thanks Greg!), I'm wondering if the following would be an option.<br><br>Say I have 5 categories: 120/121/122/123/124<br>I could write the code for each single line, but could it be made more simple by doing something like:<br>If idCategory &gt;119 AND idCategory &lt; 125 Then<br>.... &#091;action to be taken&#093; .....<br><br>I know I prob. have to convert the string to a number, but not sure on these things.<br>Somehow I have a feeling this should be simple to do?<br><br>It sure would save a lot of coding!<br><br><b>------ EDIT ------</b><br>Found the solution <img src="https://forum.productcart.com/smileys/smiley2.gif" border="0" alt="Wink" /><br><br>Dim idCategory<br>idCategory = <b>Cint(</b>getUserInput(Request("idCategory"),5)<b>)</b><br>if idCategory&gt;119 AND idCategory&lt;125 then<br>.... &#091;action to be taken&#093; .....<br><span style="font-size:10px"><br /><br />Edited by worldofrugs - 19-August-2010 at 2:58pm</span>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 14:38:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post15301.html#15301</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : I was responding to the code he...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14635.html#14635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 2:50pm<br /><br />I was responding to the code he posted and wanted to point out the importance that when he is dealing directly&nbsp;with querstring variables the need for caution.]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 14:50:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14635.html#14635</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : Isn&amp;#039;t the native ProductCart...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14631.html#14631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 1:45pm<br /><br />Isn't the native ProductCart variable pIdCategory category already sanitized?<br /><br />*edit*<br /><br />Not to confuse anyone... Greg's solution is completely secure and I'm sure the processor overhead for such a simple calculation is minimal. However, it seems a bit redundant to have two variables holding the same number.<span style="font-size:10px"><br /><br />Edited by Brett - 03-June-2010 at 2:18pm</span>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 13:45:08 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14631.html#14631</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : Thanks for the help Greg. I&amp;#039;m...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14629.html#14629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 10:39am<br /><br />Thanks for the help Greg. I'm implementing the pages that need to be re-directed right now and it works as it should. <br>It's a good feeling to know that I'm "safe" now<br>Thanks!!!<br>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 10:39:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14629.html#14629</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : That&amp;#039;s what I had in mind....]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14628.html#14628</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 10:33am<br /><br />That's what I had in mind.&nbsp; You DO NOT want to wake up one day and receive reports that the store has been attacked.&nbsp; Concientious use of proper protection methods is absolutely critical.]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 10:33:36 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14628.html#14628</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect :  Never mind Greg, I found the...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14627.html#14627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 10:30am<br /><br />Never mind Greg, I found the issue.<br>On the Wiki page you gave me, you have the line:<br><table width="99%"><tr><td><pre class="BBcode">Dim idCategory<br>idCategory = <span>getUserInput</span>(Request("id"),5)</pre></td></tr></table><br><br>But it should actually be:<br><table width="99%"><tr><td><pre class="BBcode">Dim idCategory<br>idCategory = <span>getUserInput</span>(Request("idCategory "),5)</pre></td></tr></table><br><br>When I changed it this way, working great, so I assume that this is the best way to go?<br>Thanks for pointing it out Greg, 'you tha man'! <img src="https://forum.productcart.com/smileys/smiley2.gif" border="0" alt="Wink" /><br><span style="font-size:10px"><br /><br />Edited by worldofrugs - 03-June-2010 at 10:31am</span>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 10:30:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14627.html#14627</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : Thanks for that tip Greg...However,...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14626.html#14626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 10:26am<br /><br />Thanks for that tip Greg...<br>However, as I am not a programming guru, I'm not sure how to implement this in my situation.<br><br>I have quickly tried:<br><table width="99%"><tr><td><pre class="BBcode">Dim idCategory<br>idCategory = getUserInput(Request("id"),5)<br>if idCategory="224" then<br>Response.Status="301 Moved Permanently"<br>Response.AddHeader "Location", "/shop/pc/TheOtherPage.asp"<br>Response.End()<br>end if</pre></td></tr></table><br><br>but this does not work. It simply goes to the "msg.asp?message=86" page (not a valid category), not resulting in the redirect I want and not returning the 301 header status.<br><br>Did I miss something?<br>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 10:26:08 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14626.html#14626</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : Paul, on another note, you should...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14625.html#14625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=290">Greg Dinger</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 9:59am<br /><br />Paul, on another note, you should make it&nbsp;a general practice to sanitize your reference to querystring values.&nbsp; Whether the resulting value is sent to a query or not, use the "getuserinput" function.&nbsp; Were you to not do so when sending a&nbsp;&nbsp;querystring value to a query, you would create a security hold that could be deadly. <DIV>&nbsp;</DIV><DIV><a href="http://wiki.earlyimpact.com/how_to/sanitize_strings?s%5b%5d=getuserinput" target="_blank">http://wiki.earlyimpact.com/how_to/sanitize_strings?s&#091;&#093;=getuserinput</A></DIV><DIV>&nbsp;</DIV><DIV>In your example above, the following statement would cause you massive grief&nbsp;"catnumber" was sent to a query and a hacker discovered it.</DIV><DIV>&nbsp;</DIV><DIV>CatNumber= lcase(Request.ServerVariables("Query_String"))<BR></DIV><span style="font-size:10px"><br /><br />Edited by Greg Dinger - 03-June-2010 at 9:59am</span>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 09:59:12 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14625.html#14625</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : Thanks for that tip Brett! Will...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14624.html#14624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1165">worldofrugs</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 9:50am<br /><br />Thanks for that tip Brett!&nbsp; Will try this out today and when it works (asuming it does), it will keep the coding a little cleaner<br>Thanks!<br><img src="https://forum.productcart.com/smileys/smiley32.gif" border="0" alt="Clap" /><br>]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 09:50:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14624.html#14624</guid>
  </item> 
  <item>
   <title><![CDATA[301 Redirect : You might be able to find the...]]></title>
   <link>https://forum.productcart.com/301-redirect_topic3308_post14614.html#14614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 3308<br /><strong>Posted:</strong> 03-June-2010 at 1:20am<br /><br />You might be able to find the category by simply doing:<br /><br />&lt;% if pIdCategory="number you want" then %&gt;<br /><br />Since viewcategories.asp is already populating that variable]]>
   </description>
   <pubDate>Thu, 03 Jun 2010 01:20:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/301-redirect_topic3308_post14614.html#14614</guid>
  </item> 
 </channel>
</rss>