WordPress.org

Ready to get started?Download WordPress

Forums

Why does WP redirect to main page? (3 posts)

  1. badhorsie
    Member
    Posted 6 years ago #

    If you try to go to a page within the WordPress system that doesn't exist:

    http://www.example.com/wordpress/non_existent_url/

    It always redirects the user to the wordpress index. How can I get rid of this functionality? I find it annoying and useless (how does that help a user who doesn't know their page doesn't exist?). It is overriding my htaccess 404 Not Found error and I would rather have that handle unfound pages, not WordPress.

  2. badhorsie
    Member
    Posted 6 years ago #

    OK, basically I have established that I want to stop WordPress being able to write anything to my .htaccess file. I went into wp-admin/options-permalink.php and set $writable to always be false, but that did nothing.

  3. haochi
    Member
    Posted 6 years ago #

    Well, then set .htaccess's permission to 444 or something.

Topic Closed

This topic has been closed to new replies.

About this Topic