Firstly, this is the current setup, so that you understand where I am at the moment...
If I go this url:
http://website.com/login/
The server redirects to this script:
http://website.com/page.php?section=login
I have the follow htaccess redirect set up to do this:
RewriteRule ^([a-zA-Z0-9_]*)/$ page.php?section=$1 [QSA]
That my current setup and it works as expected. However, I want to be able to add string variables from the url onto the end of the redirect if they are present.
e.g.
http://website.com/login/?redirect=abc
should go to:
http://website.com/page.php?section=login&redirect-abc
At the moment this is achieved by using the [QSA] flag at the end of the redirect.
My question is, is there a way to achieve this same outcome (as using 'QSA') with a global setting at the top of the htaccess file? i.e. a setting that can be applied like 'Options +FollowSymLinks'?
I ask, as I feel like I have used something similar in the past, but can not find any trace of it.
Thanks, as always, for any help or suggestions. Looking forward to hearing them.