search for url rewrite on google.
here is a guide from apache
smoove666
2009-07-22 16:08:23
mod_rewrite is the apache module that allows this to occur. Other web servers have their own implementations.
For a beginners guide, check out this blog post.
Might be a bit complicated if you don't know where to begin... you have to rewrite the URLs with something like this
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /index.php?url=$0 [L,QSA]
And then when you go to a URL like http://www.bankcharges.com/bank-charges-advice/
, your server will actually call up http://www.bankcharges.com/index.php?url=bank-charges-advice/
. And then in index.php you can handle that query however you want (usually by pulling something from the database). Start by learning mod_rewrite
.