• Resolved tdustrude

    (@tdustrude)


    I have a password protected folder on my web server that I use to deliver larger files to a client and it’s been working fine for over a year. They access it with a web browser and click on whatever file they want to download it (permissions are set so they can see folder contents).

    This week I finished building a wordpress website and moved it to the root level of my server, and now suddenly we can’t access that folder with a browser anymore. I can ftp to it just fine with an FTP program, but browsers get the WordPress page that looks just like my website, but with a 404 not found error.

    Do I need to add something to my htaccess file maybe?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need to edit the path in .htaccess

    Thread Starter tdustrude

    (@tdustrude)

    Thanks, but could you expand on that a bit? I don’t know what you mean. I know what my .htaccess file is and how to edit it, but I don’t know what to add to it or change.

    Sorry. Yours was the third .htaccess related question I read in three minutes. Actually what you need to do is fix an issue with WP, permalinks and password protection but depends on your server configuration if the below does not fix it then contact support at your hosting company. Every server and hosting company will need something different.
    BUT!!! You can try this fix that works often because of the permalinks. In the .htaccess in the WordPress directory add this to the TOP:

    ErrorDocument 401 /home/username/fixme.html
    ErrorDocument 403 /home/username/fixme.html

    Then put a file called fixme.html in the password protected directory.

    Should have mentioned that fixme.html can be just a empty page unless you want it to explain the error.

    Thread Starter tdustrude

    (@tdustrude)

    Sweet- thanks!

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

The topic ‘Can't access existing folder on webserver’ is closed to new replies.