<?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 : Rewrite away PC&#039;s sub-directories</title>
  <link>https://forum.productcart.com/</link>
  <description><![CDATA[This is an XML content feed of; ProductCart Shopping Cart Software Forums : Search Engine Optimization : Rewrite away PC&#039;s sub-directories]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 10 Apr 2026 15:29:29 +0000</pubDate>
  <lastBuildDate>Thu, 08 Nov 2012 16:03:10 +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=3390</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[Rewrite away PC&#039;s sub-directories : Thought I should add on to this...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post20443.html#20443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 08-November-2012 at 4:03pm<br /><br />Thought I should add on to this the method for doing this in IIS 7 with the URL Rewrite extension installed.<div><br></div><div>First of all, the URL Rewrite extension must be installed in IIS. Download it here:</div><div><a href="http://www.iis.net/downloads/microsoft/url-rewrite" target="_blank" rel="nofollow">http://www.iis.net/downloads/microsoft/url-rewrite</a></div><div><br></div><div>The rules can then be added to the &lt;system.webServer&gt; section:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&lt;rewrite&gt;</div><div>&nbsp; &nbsp; &lt;rules&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;clear /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 18" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^(images/.*|catalog/.*|custom/.*|Library/.*|tax/.*)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Rewrite" url="productcart/pc/{R:1}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 19" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^(UPSLicense/.*|CAPTCHA/.*)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Rewrite" url="productcart/{R:1}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 20" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^(includes/.*)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Rewrite" url="productcart/{R:1}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 21" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^productcart/pc/(.*)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Redirect" url="{R:1}" redirectType="Permanent" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 22" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^(&#091;^/&#093;+)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;conditions logicalGrouping="MatchAll"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/conditions&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Rewrite" url="productcart/pc/{R:1}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rule name="Imported Rule 23" stopProcessing="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;match url="^pc/(.*)$" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action type="Rewrite" url="productcart/pc/{R:1}" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rule&gt;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>&lt;/rules&gt;</div><div>&lt;/rewrite&gt;</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 08 Nov 2012 16:03:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post20443.html#20443</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories :   earlyimp wrote:    Sean@WMS...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15670.html#15670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 23-September-2010 at 7:48pm<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by earlyimp" alt="Originally posted by earlyimp" style="vertical-align: text-bottom;" /> <strong>earlyimp wrote:</strong><br /><br /><br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Sean@WMS" alt="Originally posted by Sean@WMS" style="vertical-align: text-bottom;" /> <strong>Sean@WMS wrote:</strong><br /><br />Why when the page is already in the /pc/ folder the src looks up the the /productcart/ folder and then back down to the /pc/ folder where you are already are is beyond me...</td></tr></table>The reason is that the same code is used in the Control Panel as well. For example, when you add a product to an order via the <em>Edit Order </em>feature, you are using a lot of code that is included into the Control Panel files, but actually resides in the <em>pc</em> folder. This is done to avoid code duplication (the product details page alone, for example, means a lot of code that would have to be duplicated).</td></tr></table> <br /><br />AH! I see, said the blind man as he picked his hammer and saw. Now that makes sense. I was scratching my head on that one.]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 19:48:03 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15670.html#15670</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories :     Sean@WMS wrote:Why when...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15669.html#15669</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1">ProductCart</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 23-September-2010 at 7:28pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Sean@WMS" alt="Originally posted by Sean@WMS" style="vertical-align: text-bottom;" /> <strong>Sean@WMS wrote:</strong><br /><br />Why when the page is already in the /pc/ folder the src looks up the the /productcart/ folder and then back down to the /pc/ folder where you are already are is beyond me...</td></tr></table><br><br>The reason is that the same code is used in the Control Panel as well. For example, when you add a product to an order via the <i>Edit Order </i>feature, you are using a lot of code that is included into the Control Panel files, but actually resides in the <i>pc</i> folder. This is done to avoid code duplication (the product details page alone, for example, means a lot of code that would have to be duplicated).<br><span style="font-size:10px"><br /><br />Edited by earlyimp - 23-September-2010 at 7:29pm</span>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 19:28:55 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15669.html#15669</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : Ok, v4.1 introduced a new thing...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15667.html#15667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 23-September-2010 at 6:06pm<br /><br />Ok, v4.1 introduced a new thing to deal with here. In several places there are calls to JavaScripts and such:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />&lt;link type="text/css" rel="stylesheet" href="../pc/ei-tooltip.css"&gt;<br /><br />&lt;script language="javascript" type="text/javascript" src="../pc/ei-tooltip.js"&gt;&lt;/script&gt;<br /><br />&lt;script type="text/javascript" src="../pc/XHConn.js"&gt;&lt;/script&gt;<br /></pre></td></tr></table><br /><br />This causes a problem with the ISAPI_Rewrite script I've been using, as the page is already in the /pc/ folder but src looks up the the /productcart/ folder and then back down to the /pc/ folder again. This is a problem when we've rewritten away the /productcart/ and /pc/ folders. I've added this to the origin post here.<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br /># Handle objects called via ../pc/ when already in the /pc/ folder:<br />RewriteRule ^pc/(.*)$ productcart/pc/$1 &#091;NC,L&#093; <br /></pre></td></tr></table><span style="font-size:10px"><br /><br />Edited by Sean@WMS - 23-September-2010 at 7:50pm</span>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 18:06:05 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post15667.html#15667</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : # Permanently redirect all pages...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14655.html#14655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1159">Brett</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 06-June-2010 at 5:35pm<br /><br /># Permanently redirect all pages that were using sub-directories:<br />RewriteRule ^store/pc/(.*)$ $1 &#091;NE,NC,R=301,L&#093;<br /><br /><br />If you add NE to that line, it should work.]]>
   </description>
   <pubDate>Sun, 06 Jun 2010 17:35:33 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14655.html#14655</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : Sean,Have you noticed multiple...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14654.html#14654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=1371">blackey</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 06-June-2010 at 1:19pm<br /><br />Sean,<br><br>Have you noticed multiple Custom search fields not working.&nbsp; I can do one, but when I add a second it crashes.&nbsp; Works fine with the rewrite off.<br><br>Bill<br><br>]]>
   </description>
   <pubDate>Sun, 06 Jun 2010 13:19:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14654.html#14654</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : I ran into another JavaScript...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14650.html#14650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 05-June-2010 at 1:17am<br /><br />I ran into another JavaScript issue today. The issue was with PCa SP4 when a sub-product was set to change the price if this option were selected when using the drop-down select option for display. On the client side, any of the options set this way would not appear. <br /><br />For example:<br /><br />Color: Blue | Red<br />Size: Small | Large (+1.00)<br /> <br />In this scenario, "Large (+$1.00)" will not show in either color.<br /><br />I've updated the rules and conditions posted on the first post of this thread.<span style="font-size:10px"><br /><br />Edited by Sean@WMS - 05-June-2010 at 1:18am</span>]]>
   </description>
   <pubDate>Sat, 05 Jun 2010 01:17:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post14650.html#14650</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : I have found one more little issue...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13904.html#13904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 07-April-2010 at 2:47pm<br /><br />I have found one more little issue more here with regard to the location of CAPTCHA images. I have edited the original post to account for this.]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 14:47:03 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13904.html#13904</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : I have found one little issue...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13806.html#13806</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 03-April-2010 at 12:09am<br /><br />I have found one little issue more here with regard to the location of UPS logos. I have edited the original post to account for this.]]>
   </description>
   <pubDate>Sat, 03 Apr 2010 00:09:34 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13806.html#13806</guid>
  </item> 
  <item>
   <title><![CDATA[Rewrite away PC&#039;s sub-directories : Thanks Blackey,  I like this...]]></title>
   <link>https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13512.html#13512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forum.productcart.com/member_profile.asp?PF=190">intour</a><br /><strong>Subject:</strong> 3390<br /><strong>Posted:</strong> 19-March-2010 at 1:55pm<br /><br />Thanks Blackey,<DIV>&nbsp;</DIV><DIV>I like this !</DIV><DIV>&nbsp;</DIV><DIV>Nigel</DIV>]]>
   </description>
   <pubDate>Fri, 19 Mar 2010 13:55:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.productcart.com/rewrite-away-pcs-subdirectories_topic3390_post13512.html#13512</guid>
  </item> 
 </channel>
</rss>