DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Redirect Not Found Requests To File "not-found.html" Using .HTACCESS

11.26.2008
| 6535 views |
  • submit to reddit
        
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
	RewriteRule ^ /not-found.html [L,R=301]