WordPress.org

Ready to get started?Download WordPress

Forums

htaccess is preventing me from viewing other scripts (3 posts)

  1. erikcw
    Member
    Posted 8 years ago #

    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!

  2. Samuel B
    moderator
    Posted 8 years ago #

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

    Put this before the WP directives.

  3. erikcw
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags