This question already has an answer here:
- URL rewriting with PHP 5 answers
I want to rewrite a url in .htaccess
file. in localhost for localhost/pdo/connect?id=3
as localhost/pdo/connect/3
I am using this
RewriteEngine On RewriteRule ^/connect/([0-9]+)$ connect.php?id=$1 [L].
But in connect.php I am getting an error:
undefined index id in $_Get["id"]
</div>