• Resolved rhwaterloo

    (@rhwaterloo)


    I wanted to install this plugin on my weblog to protect the PDF files I have in my media file. Since I don’t use Pretty Permalinks, Media Vault gives instructions how to adjust .htaccess with a code.

    I followed all instructions, but still am not able to enable Media Vault. Underneath is a copy of the part in which I put the code presented by Media Vault (only highlighted for this message).

    Can you tell me what I did wrong?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    # Media Vault Rewrite Rules
    RewriteRule ^wp-content/uploads(/_mediavualt/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
    RewriteRule ^wp-contnet/uploads(.*\.\w+)$ index.php?mgjp_mv_file-$1 [QSA,L]
    # Media Vault Rewrite Rules End

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    https://www.ads-software.com/plugins/media-vault/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Max GJ Panas

    (@max-gjp)

    there are a couple of typos in the second rule you typed out there!

    it should be:

    RewriteRule ^wp-content/uploads(.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]

    not:

    RewriteRule ^wp-contnet/uploads(.*\.\w+)$ index.php?mgjp_mv_file-$1 [QSA,L]

    Let me know if that fixes things!

    By the way the WordPress rules you have provided above resemble the rules one would expect with Pretty Permalinks turned on. Normally with Pretty Permalinks turned off there should be no core WordPress .htaccess Rewrite Rules. That is to say one would normally find no code at all between the lines reading # BEGIN WordPress and # END WordPress in your .htaccess.

    The Media Vault Activation Helper, in the case you want/need to use non-Pretty Permalinks provides the entire code block of plugin-required rewrite rules to copy, with instructions to just paste it above any other rewrite rules in your .htaccess file.

    You can find the the Media Vault Activation Helper in the Plugins admin menu, if Media Vault has not already been fully enabled.

    Thread Starter rhwaterloo

    (@rhwaterloo)

    The problem is solved.

    I went to the Media Activation Helper and copied the code there and pasted in my .htaccess.
    After that I deleted Media Vault plugin and installed again. When I opened my media files I was able to protect them with Media Vault.

    Thanks a lot for your support.

    Plugin Author Max GJ Panas

    (@max-gjp)

    Glad I could help!

    I have a similar problem-I simply followed the directions listed in the Media Activation Helper but it’s still not able to completely install. My .htaccess file content is below. Do you see any problems? I just copied and paste the code the plugin provided. I tried the delete and reload trick rhwaterloo indicated with no luck. Or are there any other potential roadblocks I should know about?

    Thanks for your help.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # Media Vault Rewrite Rules
    RewriteRule ^wp-content/uploads(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
    RewriteRule ^wp-content/uploads(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    # Media Vault Rewrite Rules End
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Plugin Author Max GJ Panas

    (@max-gjp)

    Hey,

    Those rewrite rules look good. In the Media Vault Activation Helper when you click to fully enable the plugin what happens? Do you have any other plugins installed? in your .htaccess is there code above these rewrite rules?

    Thanks for getting back to me on this. This .htaccess code is the entirety of what’s in my .htaccess file. I tried deactivating all other plugins but was still unable to install. I got this message:
    “Media Vault could not be enabled because the rewrite rules have not been set up correctly. Please verify that you have gone through and correctly completed each of the steps below and try again. “
    Any ideas on what else could be causing a conflict?

    (And after I got that Media Vault message I did go back and check and clicked “Enable Media Vault” with the same results and error message.) The .htaccess file I’m editing is in the location indicated in the Media Vault Activation Helper.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem installing’ is closed to new replies.