X-Nico

2 unusual facts about Rewrite engine


Clean URL

Typically clean URLs use rewrite rules to select which script (if any) to run, rather than putting the name of the script in the URL.

HTTP 404

In the first case, a better response is to return a 301 Moved Permanently response, which can be configured in most server configuration files, or through URL rewriting; in the second case, a 410 Gone should be returned.



see also