Title: 404 page
Last modified: August 18, 2016

---

# 404 page

 *  [weeble](https://wordpress.org/support/users/weeble/)
 * (@weeble)
 * [21 years ago](https://wordpress.org/support/topic/404-page/)
 * My 404 page only works on entries
    Example If this /wordpress/2005/06/entry/ 
   was mistaken for /wordpress/2005/06/entryyyy, then I get the 404 page..
 * but when I type /wordpress/blah the 404 page doesn’t show up..
 * Howcome?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/404-page/#post-232065)
 * Do you have this line in your .htaccess file?
 * `ErrorDocument 404 /wordpress/index.php?error=404`
 *  Thread Starter [weeble](https://wordpress.org/support/users/weeble/)
 * (@weeble)
 * [21 years ago](https://wordpress.org/support/topic/404-page/#post-232066)
 * Now I do :0
 * But now how do I protect my WP folders ? (wp-content, wp-ugins, etcc..)
 * Could I redirect users when they try to go these directories?
    Also how I can
   change /wp-admin to something else, like /admin
 * thanks
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/404-page/#post-232082)
 * Whatever you do, don’t do anything to “secure” wp-admin. It’s already secure.
   Anyone attempting to access the directory will be sent to a login page. Now, 
   for the rest …
 * Either add an index.php to the directories with only the following line in it(
   all on one line):
 * `<?php header('Location: http://www.example.com/wordpress/index.php'); ?>`
 * Or, add this to a .htaccess file in each of those directories:
 * `Options All -Indexes`
 * The index.php file will do a redirect to what ever domain you specify, and the.
   htaccess file will issue a 403 Access Denied error. Again, do not modify /wp-
   admin/ with either of these files.
 *  [joeprole](https://wordpress.org/support/users/joeprole/)
 * (@joeprole)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/404-page/#post-232432)
 * It seems that when not logged in, o another another computer or whatever, you
   can view the contents of my wp directories… they do not have htaccess files in
   them, so i tried putting the one from my main dir in them but this does not help…
   perhaps because the one from my main directory appears to have nothing in it?
 * I really dont know how these things work but can someone tell me how to secure
   my directories?
 * Thanks very much.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/404-page/#post-232433)
 * Just because you can get a directory listing does not mean they are not secure.
   If you don’t want a list in any of your directories put:
    Options -Indexes in
   your root .htaccess file or put an index file in each directory you want to deny
   a directory listing (or an htaccess file with the above line) .
 *  [joeprole](https://wordpress.org/support/users/joeprole/)
 * (@joeprole)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/404-page/#post-232434)
 * Ok… but my htaccess file in the root contains NOTHING… is this correct?
 * I will add options -indexes… I guess I just type it on line one and then leave
   a line after? Like..
 * ‘options -indexes’
 * heh.
 * Yeah?
 * (Thanks very much for the info)
 *  [joeprole](https://wordpress.org/support/users/joeprole/)
 * (@joeprole)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/404-page/#post-232435)
 * Yep, worked! Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘404 page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [joeprole](https://wordpress.org/support/users/joeprole/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/404-page/#post-232435)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
