Dynamic URL : http://sample.com/articles.php?id=1&name=abc
Static URL : http://sample.com/article/
I need the id and name in the static URL hidden.
I tried with the below code in htaccess
RewriteCond %{QUERY_STRING} ^id=(.*)&name=(.*)$
RewriteRule ^articles\.php$ /article/%1/%2? [R=301]
RewriteRule ^article/([^-]+)/([^-]+)$ /articles.php?article_id=$1&article_name=$2 [L]
But in the code i have to use %1 and %2 to get the id and name.
Is there any way to get those values without /%1/%2
Thank you in Advance.