remove .php extension from url in php

Just follow these steps

Open .htacess file and copy below code in .htacess file


Here test is your page name

Now you can visit your page like

remove ?id from url in php

if your url is user.php?id=1

then just copy the below code in your htacess file


That’s It. Now you see a magic in your url




Share This