RewriteEngine On RewriteRule ^test?$ test.php
remove ?id from url in php
RewriteEngine On RewriteRule ^user/([0-9]+) user.php?id=$1 RewriteRule ^test?$ test.php RewriteRule ^user/([0-9]+) user.php?id=$1 RewriteRule ^shop/cat/([0-9a-zA-Z]+)/subcat/([0-9a-zA-Z]+) shop.php?cat=$1&subcat=$2That’s It. Now you see a magic in your url
Just use below code and modified according to your need. Note: this is very useful…