• Here’s how my .htaccess looks. Can you help me please?
    Thanks.

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # Media Vault Rewrite Rules
    RewriteRule ^(?:[_0-9a-zA-Z-]+/)?/(?:/sites/[0-9]+)?(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
    RewriteRule ^(?:[_0-9a-zA-Z-]+/)?/(?:/sites/[0-9]+)?(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    # Media Vault Rewrite Rules End
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    https://wordpress.org/plugins/media-vault/

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

    (@max-gjp)

    Hey mag,

    Try using the following rules:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # Media Vault Rewrite Rules
    RewriteRule ^(?:[_0-9a-zA-Z-]+/)?wp-content/uploads(?:/sites/[0-9]+)?(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
    RewriteRule ^(?:[_0-9a-zA-Z-]+/)?wp-content/uploads(?:/sites/[0-9]+)?(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
    # Media Vault Rewrite Rules End
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    Notice the difference is in the Media Vault Rewrite Rules, after the string “^(?:[_0-9a-zA-Z-]+/)?“. It is supposed to automatically point to your uploads folder. I replaced the “/” that was there with “wp-content/uploads” which is the default path to the uploads folder.

    Do you know if you have done something to change the default WordPress Upload folder path, or how it is returned by wp_upload_dir();?

    Make sure to test all the functionality of the plugin because Media Vault depends heavily on wp_upload_dir().

    Let me know if this works!

    Thread Starter mag444

    (@mag444)

    Yes. I modified the following settings in the main site settings at this page :

    /wp-admin/network/site-settings.php?id=1

    Upload Path : /

    Upload Url Path : /

    These settings are required in order to let the NS Cloner plugin work properly.

    I tried your rules. Still have the error message. Can’t activate.

    Thanks.

    Plugin Author Max GJ Panas

    (@max-gjp)

    Hey mag,

    Interesting, I have not come across that setup before.
    Media Vault as it is now (v.0.8.12), does not support it, I am sorry.

    I will do my best to find time, as work allows, to test it out and come up with a solution soon!

    We could probably quickly figure out the .htaccess rules that would let you enable Media Vault, but I am worried other parts of the plugin would not play nice. If you have a test installation (not the live site) of your network set up, I could send you more suggestions for you to try out. Media Vault not allowing itself to enable on setups it does not fully support is a way of protecting them.

    Sorry there was no quick solution!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite problem – I added the req. code in .htaccess by still can't activate’ is closed to new replies.