RewriteEngine on 
RewriteRule ^about                about.php [L]
RewriteRule ^api-about            api-about.php [L]
RewriteRule ^contact              contact.php [L]
RewriteRule ^tos                  tos.php [L]
RewriteRule ^([^/.]+)/?$          link.php?id=$1 [L]
RewriteRule ^404                  404.php [L]

<IfModule mod_php5.c>
    php_value max_execution_time 6000
</IfModule>

Options -Indexes
ErrorDocument 404 http://localhost/shortny/404
ErrorDocument 403 http://localhost/shortny/404
