Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2011, 10:21 PM   PM User | #1
sitNsmile
Regular Coder

 
sitNsmile's Avatar
 
Join Date: Dec 2009
Location: Charlotte, NC
Posts: 354
Thanks: 19
Thanked 2 Times in 2 Posts
sitNsmile is an unknown quantity at this point
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..
sitNsmile is offline   Reply With Quote
Old 03-07-2011, 11:06 PM   PM User | #2
sitNsmile
Regular Coder

 
sitNsmile's Avatar
 
Join Date: Dec 2009
Location: Charlotte, NC
Posts: 354
Thanks: 19
Thanked 2 Times in 2 Posts
sitNsmile is an unknown quantity at this point
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
sitNsmile is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:32 AM.


Advertisement
Log in to turn off these ads.