|
hi, ive a problem while trying to use .htaccess toobtain the query string of the page which a user has tried to visit. as i understand it, the requested page name and all the vars within it are held inside the $ variable which can be called from within .htaccess. but whenever i try to send these $ variables via $_GET to another page i simply see mypage.php?id=$1
here is my htaccess code
Options +FollowSymlinks
RewriteEngine on
ErrorDocument 404 http://www.site.com/notfound.php?page=$1
which results in my address bar looking like
http://www.site.com/notfound.php?page=$1
where $_GET['page'] should equal the URL of the user's original request.
Do i have to turn on variable parsing inside htaccess or something? this exact code worked on my old server, but not on the new one. I have searched the web for hours but can not find any reference to my problem.
Thanks for reading
Mark
|