Custom ‘404 error ‘ not working when nice urls are ON
-
All works fine when my .htaccess looks like this:
ErrorDocument 404 https://vitorazevedo.com/wp-content/themes/blocks/404.html
(this is, the custom 404 page works fine if the user types an invalid url)But if I use the nice urls permalinks (www.site.com/my-post/) my .htaccess looks like this:
ErrorDocument 404 https://vitorazevedo.com/wp-content/themes/blocks/404.html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule># END WordPress
and the custom 404 error page doesnt work.
Any help?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom ‘404 error ‘ not working when nice urls are ON’ is closed to new replies.