Sorry for noob question, can't understand from things i should search.

I am creating a site with this page product.php?id=777
I'd want it to be product/777

Thanks!

Create .htaccess file inside your web root and enter following there:

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^product/([0-9]+)$ product.php?id=$1

Rather than using mod_rewrite you may also use following inside your .htaccess:

 DefaultType application/x-httpd-php 

And merely title your script product around the server (without .php file extension).

So that you can invoke it directly and would get any appended string as $_SERVER["PATH_INFO"]

it has something related to url spinning, this really is something you setup typically using the mod_rewrite module in apache

urlrewriting

This really is something which frameworks like CodeIgniter and Zend accomplish effortlessly, but can nonetheless be accomplished with only Apache's mod_rewrite, as others have recommended. Essentially, make use of a .htaccess such as this to direct all visitors to a 1 page:

<IfModule mod_rewrite.c>
    RewriteEngine On

        RewriteCond                     %{REQUEST_FILENAME} !-f
        RewriteCond                     %{REQUEST_FILENAME} !-d
    RewriteRule                 ^(.*)$ index.php?_url=$1 [QSA,L]
</IfModule>

When you jump on that page you are able to parse that _url variable, which may be whatever format you would like, and take care of the request properly.