I have problem while getting the parameters from the URL after some URL rewriting.
This is my original URL:
http://www.mysite.com/index.php?page=article-details&id=1
I am using the following code in my .htaccess file:
Expand|Select|Wrap|Line Numbers
- RewriteRule ^articles/([A-Za-z0-9-]+)/?$ index.php?page=article-details&id=$2 [NC,L] # Process articles requests
http://www.mysite.com/articles/1
Now in this page im using $_REQUEST['id'] to get the id of the article but im not able to get any value. Please tell me how i can solve this problem.
Thank you.
Regards
Faisal