Forum Moderators: phranque
I was trying to setup a search using the GET method like so,
example.com/search?v1=1&v2=1&v3=1
The problem was that all my files are inside of a 'deny from all' folder and the only access to this folder is through one php file. So by default all pages on my website are referenced this way in .htaccess
RewriteRule ^homepage$ /script.php?page=homepage [L]
RewriteRule ^question$ /script.php?page=question [L]
RewriteRule ^search$ /script.php?page=search [L]
and so on...
The problem I ran into was trying to use the GET method because it would automatically append a '?' causing my searches to fail. The solution was using the QSA (i think it stands for query search append) like so,
RewriteRule ^search$ /script.php?page=search [QSA]
Now when the GET method appends the variables onto the address. Thanks webmasterworld, would be lost without this place.