FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


_GET LOST





imagefree
i am using a littlebit URL reqriting and after the redirection by .htaccess (as a result of rewriting), my $_GET variable get lost.

here is my rewriting script

Code:
RewriteRule ^([a-zA-Z]*)/([0-9]+)[/]*$ /home.php?page=$1&redirect=$2
RewriteRule ^([a-zA-Z]*)[/]*$ /home.php?page=$1


ok, when i try to access the page by URI
Code:
/browse?c=13&p=44


i cant get the values $_GET['c'] and $_GET['p'], but $_GET['page'] still exists.
How to haldle current situation?
rvec
/browse?c=([0-9]+)&p=([0-9]+) I guess. Else you should use /browse/13/44 as the url and /browse/([0-9]+)/([0-9]+) as the rule.
imagefree
rvec wrote:
/browse?c=([0-9]+)&p=([0-9]+) I guess. Else you should use /browse/13/44 as the url and /browse/([0-9]+)/([0-9]+) as the rule.

the first one is not working (gives server error), the second one is not possible because i am using the second solution already for some other purposes.


is there any other solution?
Related topics
An opponent lost his head
Lost
LOST
How To : Secure Your PHP Website
LOST | Season 2 Episode 2... Notes, thoughts and much more!!
Lost - spoilers
I Lost my direct admin password
What - I had lost at Karen Mok's concert
Lost 15 points!
Half-life 2 - Lost Coast
do you watch lost?
Does any one watch Lost?
Lost Dog
LOST story (funny)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.