Rewrite away PC's sub-directories |
Post Reply | Page <123 |
Author | ||
Guests
Guest |
Post Options
Thanks(0)
|
|
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.
For example: Color: Blue | Red Size: Small | Large (+1.00) In this scenario, "Large (+$1.00)" will not show in either color. I've updated the rules and conditions posted on the first post of this thread. Edited by Sean@WMS - 05-June-2010 at 1:18am |
||
blackey
Newbie Joined: 11-November-2008 Location: Livermore, CA Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
Sean,
Have you noticed multiple Custom search fields not working. I can do one, but when I add a second it crashes. Works fine with the rewrite off. Bill |
||
Brett
Groupie Joined: 22-April-2008 Location: Phoenix, AZ Status: Offline Points: 89 |
Post Options
Thanks(0)
|
|
# Permanently redirect all pages that were using sub-directories:
RewriteRule ^store/pc/(.*)$ $1 [NE,NC,R=301,L] If you add NE to that line, it should work. |
||
Guests
Guest |
Post Options
Thanks(0)
|
|
Ok, v4.1 introduced a new thing to deal with here. In several places there are calls to JavaScripts and such:
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.
Edited by Sean@WMS - 23-September-2010 at 7:50pm |
||
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
|
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 Edit Order feature, you are using a lot of code that is included into the Control Panel files, but actually resides in the pc 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). Edited by earlyimp - 23-September-2010 at 7:29pm |
||
Guests
Guest |
Post Options
Thanks(0)
|
|
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. |
||
Guests
Guest |
Post Options
Thanks(0)
|
|
Thought I should add on to this the method for doing this in IIS 7 with the URL Rewrite extension installed.
First of all, the URL Rewrite extension must be installed in IIS. Download it here: The rules can then be added to the <system.webServer> section:
|
||
Post Reply | Page <123 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |