|
local new_qs = dst:match('%?.*') |
RewriteRule p/ajax /ajax.php [QSA,L]
Will not work because the script will never append the querystring as it will not get past if new_qs then. So the querystring will be lost.
I need to append a random string to the destination path in order for QSA to work:
RewriteRule p/ajax /ajax.php?x=1 [QSA,L]
This works and passes the incoming querystring to the rewrite url.