Can someone tell why the following htaccess file does not forward users to my notfound.html file when they key in a bad address? AddHandler Extension_Type .html .htm .php3 .php4 Action Extension_Type /cgi-bin/php.dat Options -Indexes ErrorDocument 404 /notfound.html RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^\.]+)$ index.php?FixedTitle=$1 PHP: Thanks, B
Try this. AddHandler Extension_Type .html .htm .php3 .php4 Action Extension_Type /cgi-bin/php.dat Options -Indexes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^\.]+)$ index.php?FixedTitle=$1 RewriteRule (.*) /notfound.html [L] PHP:
try Options All -Indexes Options +FollowSymlinks RewriteEngine on AddHandler cgi-script .cgi .pl .html .htm .php3 .php4 Action Extension_Type /cgi-bin/php.dat Options -Indexes ErrorDocument 404 /notfound.html ErrorDocument 403 /notfound.html RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^\.]+)$ index.php?FixedTitle=$1 Code (markup):