WordPress.org

Ready to get started?Download WordPress

Forums

Htaccess Secure Files
Error in WP 3.3 (9 posts)

  1. Lyelle
    Member
    Posted 2 years ago #

    Hi isaacchapman,

    i was exited to finally have found a plugin with these abilities.
    But actually, its not working.
    Just, tried it on a fresh install of wp 3.3.2.
    Uninstall of akismet plugin was the only tweak.
    So "htaccess secure files" remains the only plugin.

    Secured one uploaded file. If done, it is completely protected. Even for admin, although default roles are set.
    I can read php, but am unable to give any help to find the error, sorry.

    Despite that the redirection is broken as well.

    I really would like to see a fix here ;)

    http://wordpress.org/extend/plugins/htaccess-secure-files/

  2. isaacchapman
    Member
    Plugin Author

    Posted 2 years ago #

    Can you post the contents of the .htaccess file that is in the same folder on the file system as the secured file?

  3. Lyelle
    Member
    Posted 2 years ago #

    #### DO NOT EDIT BELOW (Htaccess Secure Files plugin created content) ####
    RewriteEngine On
    # For files that do not exist use WordPress' root index.php
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule . /securenewinstall/wordpress/index.php [L]
    # For files that do exist see if they are secured
    RewriteCond %{SCRIPT_FILENAME} -f
    #### Start of Htaccess Secure Files plugin created entries ####
    RewriteRule ^(listDec10\.pdf) \wp-content\plugins\htaccess-secure-files/dl.php?f=$1 [L]
    #### End of Htaccess Secure Files plugin created entries ####

  4. isaacchapman
    Member
    Plugin Author

    Posted 2 years ago #

    From looking at the .htaccess file it appears the rewrite rules do not match as the path of /securenewinstall/wordpress/index.php should be similar to the wp-content/... path from my recollection. I'll take a look at the code later today and see if I can find where the discrepancy is being generated.

  5. Lyelle
    Member
    Posted 2 years ago #

    Hi Isaacchapman,

    any progress on this problem?

  6. isaacchapman
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for not responding. I tried creating different folder structure installs and couldn't replicate how the last RewriteRule line is being created. Are you using Apache on Windows perhaps (which might explain why the slashes are flipped)?

  7. Lyelle
    Member
    Posted 2 years ago #

    Right, this install was done on a windows apache server.
    Besides, i have other installs without flipped slashes not working either.

  8. isaacchapman
    Member
    Plugin Author

    Posted 2 years ago #

    I didn't have the time to test the installation on Apache on Windows, but I did make the plugin a bit smarter about when WordPress is installed in a sub-directory.

    Please install the newest version of the plugin and inform me if it is still a problem. (And if you are using Apache, why would you use Windows???)

  9. Lyelle
    Member
    Posted 2 years ago #

    Did not solve the problem, sorry.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic