google-code-export / nyromodal

Automatically exported from code.google.com/p/nyromodal
1 stars 1 forks source link

mod rewrite causing problems #529

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by sa...@guitargallerymusic.com on 15 Sep 2010 at 2:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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] 
#

Original comment by sa...@guitargallerymusic.com on 16 Sep 2010 at 11:26