PHP $_GET and .htaccess rewrite
问题 I know this is probably a common question and has been asked before but .htacess looks foreign to me and I can't seem to get this to work from looking at previous questions. I have a index script that searches and the syntax is: .../listing/?field=property_type&query=retail I simply want to rewrite this to: .../listing/{field}/{query} One other catch, I have some fields that are boolean.. for example: .../listings/?forlease=1 So in this case I just use isset() but would like to rewrite this