Little help...
I've been trying to set a custom 404 error with ErrorDocument in my .htaccess. Every time I try to enter an incorrect address to a file or folder, the page reloads with my theme and just the post text.
Here's how my .htaccess file looks:
ErrorDocument 404 /404.php
RewriteEngine On
RewriteCond %{HTTP_HOST} !^test.theamells.net [NC]
RewriteRule ^(.*)$ http://test.theamells.net%{REQUEST_URI} [R=301,L]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule># END WordPress