Assume that i'm having a URL like this
example.com/demo/index.php?name=test
Now I need to rewrite the above URL like this,
example.com/demo/test
My question is, how can I achieve that by .htaccess URL rewriting?
Assume that i'm having a URL like this
example.com/demo/index.php?name=test
Now I need to rewrite the above URL like this,
example.com/demo/test
My question is, how can I achieve that by .htaccess URL rewriting?
yuppp, I got it
RewriteRule ^demo/([\w-]+)$ demo.php?id=$1
Credit to : @Abhishek Gurjar
RewriteEngine On
RewriteRule ^test/(.+) /test.php?name=$1 [L]
you must add bove code in htaccess and you can get parameter as $_GET['name']