So, I'm having a difficult time understanding QSA. Since
RewriteRule ^search/(.*)$ search.php?s=$1 [NC,L,B,QSA]
RewriteRule ^search/(.*)$ search.php?s=$1 [NC,L,B]
Both give me the same result. I read that QSA appends any parameters passed (at least I think that's what I understood from it). However it's not exactly working for me.
Currently I have the url
http://localhost:8888/search/hey+i%27m+a+search+query&SortBy=day
which returns
hey i'm a search query&SortBy=day
I can set it to
RewriteRule ^search/(.*)&SortBy=(.*)$ search.php?s=$1&SortBy=$2 [NC,L,B,QSA]
which will successfully return the get parameter, but I from what I understand about the QSA, it should be automatically handled...right?
I got my information from here - What does $1 [QSA,L] mean in my .htaccess file?
Basically, my question is, why should I use QSA? And what kind of benefits would it provide in this situation? (Sorry for being blunt, but I can't get a good grasp of this)