Transforming $_GET[] urls to SEO friendly urls

Hi. I dont specifically have an error, I would like to know how do transform $_GET urls like ?id=19 to /id/19/. Is it there a way to do this?
To clarify, it would normally look like /example.php?page=5 but i want it to look like /example/page/5.

Thank you!

You would use .htaccess to do that

4 Likes

This post should help

This specific example I belive

RewriteEngine On
RewriteCond %{QUERY_STRING} blog=(.+) [NC]
RewriteRule ^(.*)$ http://www.example.com/Blog-Details.php/%1? [R=301, NC, L]
4 Likes