Unknown Number Of Parameters
2 posts
• Page 1 of 1
- mdameron76
-
- Posts: 8
- Joined: 18 Dec 2012, 11:49
Unknown Number Of Parameters
How would I create a rule for unknown parameters in the querystring?
example:
http://www.somesite.com/dogs/black/texas/dogs-for-sale
http://www.somesite.com/dogs/texas/dogs-for-sale
http://www.somesite.com/texas/dogs-for-sale
I would like to keep the keyword and the end.
Thanks,
Matt
example:
http://www.somesite.com/dogs/black/texas/dogs-for-sale
http://www.somesite.com/dogs/texas/dogs-for-sale
http://www.somesite.com/texas/dogs-for-sale
I would like to keep the keyword and the end.
Thanks,
Matt
- mdameron76
-
- Posts: 8
- Joined: 18 Dec 2012, 11:49
Re: Unknown Number Of Parameters
Nevermind...
I'm just using
RewriteRule ^(.*)/dogs-for-sale$ /test.php?id=$1 [NC,L]
then grabbing the url with php and parsing it to build the query.
I'm just using
RewriteRule ^(.*)/dogs-for-sale$ /test.php?id=$1 [NC,L]
then grabbing the url with php and parsing it to build the query.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests