Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Stop Redirecting 403 to WP 404 Page

Discussion in 'Misc WordPress Requests' started by Clayton James, Oct 31, 2017.

  1. Clayton James

    Guest

    Reply To: Stop Redirecting 403 to WP 404 Page, by Clayton James

    If the sub-directory doesn’t contain an index file of any type, then you could try adding Options -Indexes to the top of your .htaccess file. That prevents casual browsing of all directories and should return a 403 Forbidden error if accessed directly.

    If you don’t need to guard against casual browsing of all directories and only want to deny access to one sub-directory, you might try placing place an .htaccess file inside of that folder (the one you want to protect) and then add Deny from all to it. That should probably return a 403 for that directory.

    You might also be able to use the configuration tools in your hosts control panel to password protect just that directory if you still need access to it from a browser for other reasons.

    I imagine there’s probably a few other solutions out there as well.

    Reply To: Stop Redirecting 403 to WP 404 Page
     
    #1

Share This Page

Web Hosting