Issue 529: mod rewrite causing problems
Status:  New
Owner: ----
Reported by sa...@guitargallerymusic.com, Sep 15, 2010
I think that a problem I am experiencing is related somehow to this.

My individual product pages which have the order form which triggers the modal window are converted to static urls via a mod rewrite. So
a page which is processed as  url/phpfile.php?function=display&item=1232443
is displayed as url/author/item/item_name.html

When I try the page using the dynamic url (the first one) it works fine
but when I try the submit from the static page it fails ( it just hangs up).  Is there a way around this? 

I am running on a unix server
Sep 16, 2010
#3 sa...@guitargallerymusic.com
p.s. this is the code I have in my header now.

$(function() {
  $.nyroModalSettings({
    endRemove: function() {
   
    	$("#cartStuff").html('');
    	
     	$.get('updateMiniCart.php', function(data){
  			$('#cartStuff').html(data);
		 }); //update miniCart   	
   
    } 
     // endRemove
  }); // settings
}); // function


This is the mod rewrite:

#
# individual product code requests
# Internally rewrite search engine friendly static URL to dynamic filepath and query
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /shopping.php?doFunction=display_product&item_number=$1&d=$2&c=$3&t=$4 [L]
#
# Externally redirect client requests for old dynamic URLs to equivalent new static URLs
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /shopping\.php\?doFunction=display_product&item_number=([^&]+)&d=([^&]+)&c=([^&]+)&t=([^\ ]+)\ HTTP/
RewriteRule ^shopping\.php$ http://www.mydomain.com/%1/%2/%3/%4\.html? [R=301,L] 
#