I am trying to create a simple redirect to another page on login script.
Currently I am rewriting my URLS to the following format using .htaccess:
RewriteRule ^login$ ?i=l [L]
RewriteRule ^login([^/]*)$ ?i=l&=$1
The normal URL is therefore: domain.com/login - although I wish to be able to do the following: domain.com/login&redirect=/account/settings (Where the "redirect" will be the $_GET parameter that I'll be redirecting to after successful login)
My problem is if I access the above URL I get a 404 page not found. What am I doing wrong?
&and?as it looks... An&cannot be part of the url itself. It would have to be "percent encoded".?separate the parameters from the path in the URL?