WordPress.org

Ready to get started?Download WordPress

Forums

Custom 404.php page not working (5 posts)

  1. vsa
    Member
    Posted 8 years ago #

    In WP 2.0 my custom made 404.php page (in my theme's directory) is not working.
    My .htacces looks like this:
    RewriteEngine on

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    ErrorDocument 404 /index.php?error=404
    </IfModule>

    # END WordPress

    When you type an invalid url, example:
    http://vitorazevedo.com/cocacola
    you get this:
    Not Found
    The requested URL /php-bin/index.php was not found on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Any help?

  2. Take the ErrorDocument 404 /index.php?error=404 line and move it to the first line of the .htaccess file (above the # BEGIN WordPress tag).

  3. vsa
    Member
    Posted 8 years ago #

    Thanks for the suggestion but it doesnt work.

  4. bugsmi0
    Member
    Posted 7 years ago #

    this doesn't work for me either

  5. bugsmi0
    Member
    Posted 7 years ago #

    this did the trick in functions.php

    http://wordpress.org/support/topic/67416?replies=8

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags