I’ve created a PHP pagination system, but I want to hide the _GET variable in the address bar.
At the moment mine looks like this: http://example.com/images.php?page=1
But I’ve seen a few site that have http://example.com/images/1/.
Just wondering how they go about this? Can anyone point me in the right direction? Cheers
You will need support from your web server to get the requests right and rewrite the requests of
/images/1/internally to/images.php?page=1. Most web server have a module or extension to support such behavior like Apache’s mod_rewrite, lighttpd’s mod_rewrite, ISAPI Rewrite module for ISS, etc.