HTAccess:
RewriteEngine on
RewriteRule ^Home$ index.php [L,QSA]
RewriteRule ^About$ about.php [L,QSA]
RewriteRule ^Login$ login.php [L,QSA]
RewriteRule ^Settings$ settings.php [L,QSA]
RewriteRule ^Exit$ exit.php [L,QSA]
RewriteRule ^Search?q=(.+)$ search.php?q=$1 [L,QSA]
RewriteRule ^([0-9a-zA-Z-_]+)/([0-9]+)$ id.php [L,QSA]
ErrorDocument 404 /404.php