balagod 0 Newbie Poster

i,
i want to execute my code to rewriting url in on the fly and i have to get $_requet values in code

for example
original typed url in browser:

http://localhost/mypet1/a1
http://localhost/mypet1/a1/?page=sp_login
http://localhost/mypet1/a1/index.php
http://localhost/mypet1/a1/index.php?page=sp_login


execution url
http://localhost/mypet1/?sp=a1
http://localhost/mypet1/?sp=a1&page=sp_login
http://localhost/mypet1/index.php?sp=a1
http://localhost/mypet1/index.php?sp=a1&page=sp_login

i need to get in my code
$_REquest; value is a1 for above example

any one help me to do this

Regards
Bala