brooksh Posted July 3, 2009 Share Posted July 3, 2009 The sample url is : mywebsite.com/find2/?zip=55555 rewriterule ^find([0-9])/\?zip=([0-9])$ search.php?find=$1&zip=$2 [L] Link to comment https://forums.phpfreaks.com/topic/164602-why-doesnt-this-htaccess-work-using-two-variables/ Share on other sites More sharing options...
corbin Posted July 3, 2009 Share Posted July 3, 2009 You will have to do a RewriteCond on the %{QUERY_STRING} since the query string is not included in URLs when rewriting. Link to comment https://forums.phpfreaks.com/topic/164602-why-doesnt-this-htaccess-work-using-two-variables/#findComment-868216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.