Jump to content

GET parameters not working properly?


XpertWorlock

Recommended Posts

Example URL that I would use : http://mysite.com/classifieds/category?page=2&priceFrom=400.00

 

RewriteCond %{QUERY_STRING} ^page=([0-9]+) [OR]
RewriteCond %{QUERY_STRING} ^priceFrom=([0-9]+)
RewriteRule ^classifieds/([a-zA-Z',\s]+)/?$ /classifieds.php?search&category=$1&page=%1&priceFrom=%2 [L,NC]

 

It determines what page is when printed out, but "priceFrom" comes up empty.

 

What am I doing wrong?  I need it to work whether both or only one are set

Link to comment
https://forums.phpfreaks.com/topic/209101-get-parameters-not-working-properly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.