Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    362

    Unanswered: Apache mod_rewrite

    I want to use Apache mod_rewrite with a .htaccess file and to do this
    the url
    siteurl/index.php/product?pr=jjk4zi86NxVVRL&code=thecode
    to be
    siteurl/index.php/thecode/product?pr=jjk4zi86NxVVRL
    How can I do that?

  2. #2
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    take a look at the explode string function.

    You could also use the substr function, in conjunction with the strpos function, to return the substring which starts at position 1 and ends at the position of '&code'
    Last edited by loquin; 07-21-09 at 23:16.
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Posting Permissions

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