SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru hifigrafix's Avatar
    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}
    As stated this problem is specific to checkout_payment.php.

    Thanks for your help.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,607
    Mentioned
    19 Post(s)
    Tagged
    2 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,

    DK
    David 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •