My url looks like -
http://localhost/user_notes/public/index.php?id=1234.
I want to be turn it into user friendly url like
http://localhost/user_notes/public/1234
My .htaccess file looks like -
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/([0-9]+)/ /index.php?id=$1
</IfModule>
So now when I use http://localhost/user_notes/public/1234 location in browser it is giving me error (The requested URL was not found on this server). So above htaccess file is not working as I expected.
My directory structure given below -
