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] Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.