I want to use GET method in php. it will be like "www.example.com/test.php?id=1". But how can I avoid this structure and using something like www.example.com/test/id or any other structure?
Please below is my .htaccess file. Can anyone tell what should I add in this? And how can I use that get value in PHP?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>