WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess is not returning HTTP 404 Error Page (4 posts)

  1. racket
    Member
    Posted 6 years ago #

    Please, I'm tired of trying to find and fix the error inside the .htaccess which is returning a page of the blog instead the Error HTTP 404 Page. I have been penalized already in Google for this. I need somebody to help me telling me what to do.

    This is what I have in my .htaccess code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    My blog is in the root directory
    Please, somebody, send me the right code.

  2. lelandf
    Member
    Posted 6 years ago #

    Does your theme have a 404 template?

  3. racket
    Member
    Posted 6 years ago #

    Yes, 404.php

    Thanks!

  4. markhard
    Member
    Posted 6 years ago #

    hey racket, i'm having the same problem with you, i'm using 2.5.1 and same .htaccess with yours.

    my problem is with page, lets say you have:

    about page, with url: http://domain.com/about/

    and contact page, with url: http://domain.com/contact/

    the problem happen when you type url: http://domain.com/about/contact it will show all the pages content (both about and contact and others if you have more pages)

    it should be show 404 page instead of showing all pages. anybody experiencing the same problem?

Topic Closed

This topic has been closed to new replies.

About this Topic