ok - so i'm using safe URLs with modrewrite which is working great - but i have a login script on each page so people can login/out whenever they want. This script uses a referer to take people back to the exact page they we're on when they pressed login or out.
ie your here;
http://www.adaptiveactions.net/action/27/
(project.php?sec_title= 27)
you click on login and the scripts sends you back to the referrer which should be;
http://www.adaptiveactions.net/action/27/
but its send you to
http://www.adaptiveactions.net/project.php
(which is the page file. RewriteRule action/([a-zA-Z0-9-]+)/$ project.php?sec_title=$1 [L])
how can i get it to pick up the rewritten url and keep the variable?
I've tried $_SERVER['PHP_SELF'] etc but only get project.php
any pointers appreciated.
many thnaks, Dan.