Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder sitNsmile's Avatar
    Join Date
    Dec 2009
    Location
    Charlotte, NC
    Posts
    358
    Thanks
    19
    Thanked 2 Times in 2 Posts

    multiple rewriteCond (.*) not working?

    Code:
    RewriteCond %{QUERY_STRING} c=(.*)
    RewriteCond %{QUERY_STRING} sk=(.*)
    RewriteRule ^([_A-Za-z0-9-]+)(.*)(.*) /index.php?page=find&term=$1&ch=%1&s=%2
    That is what im trying to do, however, I can not get the ?dp to work correctly.

    " domain.com/test?c=74?sk=45 "

    or even to allow multiple param would be great
    I know its sorta odd way of doing so.
    (it trys to given an easier way of looking at the page instead of the .php style for non-seo relations.)

    thanks
    Last edited by sitNsmile; 03-07-2011 at 10:34 PM.

  • #2
    Regular Coder sitNsmile's Avatar
    Join Date
    Dec 2009
    Location
    Charlotte, NC
    Posts
    358
    Thanks
    19
    Thanked 2 Times in 2 Posts
    I reconfigured for this

    Code:
    RewriteCond %{QUERY_STRING} c=(.*)
    RewriteRule ^([_A-Za-z0-9-]+)(.*)([_A-Za-z0-9-]+) /index.php?page=find&term=$1&ch=%1&sk=$2 [NC]
    Works okay, anyone to comment or say other solutions, i'm all hears. thanks


  •  

    Posting Permissions

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