SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: OsCommerce URL Rewrite Issue
-
Sep 11, 2007, 04:35 #1
- Join Date
- Oct 2005
- Location
- Nashville, TN
- Posts
- 628
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
OsCommerce URL Rewrite Issue
Greetings,
I've got a URL rewrite SEO module included in an OSC site. The mod is working great BUT I've got a problem when the payment is declined with the query string being re-written.
The URL: http://www.mydomain.com/checkout_pay...xpires_year/07
This should be:
http://www.mydomain.com/checkout_pay...xpires_year=07
I don't know mod-rewrite very well but this attempt didn't work:
HTML Code:RewriteRule checkout_payment.php^(.*)$ checkout_payment.php?$1&%{QUERY_STRING}
Thanks for your help.
-
Sep 11, 2007, 06:11 #2
- Join Date
- Feb 2002
- Location
- Auckland
- Posts
- 14,692
- Mentioned
- 20 Post(s)
- Tagged
- 3 Thread(s)
hifi,
Not enough time tonight to get to this but the two basic problems are that you cannot use a start anchor in the middle of your regex AND you cannot access the query string in a RewriteRule.
You might benefit from a read of the tutorial article in my signature.
Regards,
DKDavid K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
Bookmarks