I am having trouble with the RewriteRule
. I have created a pretty URL for my search page where it posts to itself to query the results. However the $_GET['type']
variable is not being sent to the page. This works perfectly fine on my local WAMP server but does not return a result on my Live hosted server.
e.g. http://..com/search/searchType/
SearchType being the $_GET['type']
data I am sending to the page.
My .HTACCESS
is as follows
RewriteEngine On
RewriteRule ^property/(.*)/(.*)/([0-9]+)/$ view_property.php?type=$1&id=$3 [L]
RewriteRule ^search/(.*)/ search.php?type=$1 [L]