Hello all,
I've been reading hard for a good few hours and still can't find what I need! Hopefully someone here can help.
What I want to achieve is to redirect a specific URL with a specific variable to another page, but not when there are other URL variables present.
eg.
- index.php?option=com_user - this needs to be redirected to index.php
- index.php?option=com_user&view=login - this must not be redirected
- index.php?option=com_user&view=login&foo=bar - this must not be redirected
I've found lots of examples that test for the existence of a given variable, but I want to test for that variable and test that no other variables exist.
Can anyone help?
Thanks in advance.