Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
htaccess not receiving $_GET query string
Old 02-25-2011, 05:17 AM htaccess not receiving $_GET query string
hiptobesquare's Avatar
Extreme Talker

Posts: 186
Location: London UK
Trades: 0
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
hiptobesquare is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-25-2011, 06:16 AM Re: htaccess not receiving $_GET query string
Banned

Posts: 53
Name: AlanMaster4
Trades: 0
i dont have any exact idea about but thanks for sharing informative idea.
alanmaster4 is offline
Reply With Quote
View Public Profile Visit alanmaster4's homepage!
 
Reply     « Reply to htaccess not receiving $_GET query string
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32291 seconds with 12 queries