WordPress.org

Ready to get started?Download WordPress

Forums

Possible conflict: WP permalinks with AgoraCart password protection (1 post)

  1. RosieMBanks
    Member
    Posted 7 years ago #

    Hey, all. I'm setting up a website for a friend. The site includes a WordPress blog and an AgoraCart for his store.

    To password-protect AgoraCart's manager panel, AgoraCart creates an .htaccess file in the protected directory holding the manager panel. It contains these instructions:


    #
    #Options All

    AuthType "Basic"
    AuthName "Protected Access"

    AuthUserFile /home/myusername/public_html/shop/protected/manager.access

    <Limit GET>
    require valid-user
    </Limit>

    However, the moment this .htaccess file is created, the WordPress blog throws up its 404 page whenever you try to access any page in the AgoraCart manager admin.

    Removing the password protection in the .htaccess file fixes it, but so does removing the root-level .htaccess file containing the WordPress mod_rewrite instructions. (Contents listed below.)


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    So I'm guessing the WordPress mod_rewrite instructions are messing with this sublevel .htaccess password protection, and my question to you is:

    Can I adjust the root-level WordPress instructions so they won't interfere with the .htaccess file in sublevel directories? If so, how?

    Then again, I could be barking up the wrong tree here, so any ideas are welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic