I'm doing a site in core php. There is a page to verify certificates when students enter their certification id. This is the link to which its redirected when students enter their certification id and click verify.
http://domainname.com/certificate/?id=6785
I need the link to be http://domainname.com/certificate/6785
I've tried adding this code to .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/certificate/([0-9]+) /certificate/?id=$1
</IfModule>
But it doesn't work.
Can someone please help me?