WordPress.org

Support

Support » How-To and Troubleshooting » htaccess is preventing me from viewing other scripts

htaccess is preventing me from viewing other scripts

  • Hi,

    I have WP installed in my webroot directry (public_html). I have a non WP script installed in /public_html/myscript/

    When I try to access /myscript/ I get a WP 404 error. It seems that htaccess in preventing me from viewing this folder.

    How can I create an .htaccess “exemption” for myscript/?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Samuel B
    Participant

    @samboll

    <Directory /usr/users/*/public_html/myscript>
    Order Deny,Allow
    Allow from all
    </Directory>

    Put this before the WP directives.

    I tried putting that (with modified path) in my .htaccess file, and it started causing 500 server errors.

    Am I missing something?

    “/myscript” is a directory right? Does it need a trailing slash or something? (which I tried – but it caused the same error…)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess is preventing me from viewing other scripts’ is closed to new replies.