Sorry for noob question, can\'t understand from what I should search.
I\'m making a site with that page product.php?id=777
I\'d like it to be pro
This is something that frameworks like CodeIgniter and Zend accomplish with ease, but can still be accomplished with just Apache's mod_rewrite
, as others have suggested. Basically, use a .htaccess like this to direct all traffic to a one page:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_url=$1 [QSA,L]
Once you get on that page you can parse that _url
variable, which can be whatever format you want, and handle the request appropriately.