Just doing some mod rewrite stuff and am having a problem with the last bit, trying to get the URL created by the form get method to redirect to the type of URLs I want. Problem is I am getting 500 Internal server error.
Code:
RewriteRule ^random-integer/$ /integer.php
RewriteRule ^random-integer/number-([0-9]+)-minimum-([0-9]+)-maximum-([0-9]+)-unique-(yes|no).html$ /integer.php?num=$1&min=$2&max=$3&u=$4
RewriteRule ^random-integer/(.+)$ /random-integer/ [R=301]
RewriteRule ^random-integer$ /random-integer/ [R=301]
#Below code is causing problem
RewriteCond %{QUERY_STRING} ^?num=([0-9]+)&min=([0-9]+)&max=([0-9]+)&u=(yes|no)$
RewriteRule ^random-integer/$ /random-integer/number-%1-minimum-%2-maximum-%3-unique-%4.html [R=301]






