htaccess on multisite
-
After discovering some of my protected images on google image, I dug a little deeper. I reproduce my findings to assist anyone with a similar problem.
This is the normal path for a wordpress upload.
https://example.com/wp-content/uploads/_mediavault/2015/02/kangeroo.jpgMy files are found under the following which I think this is the multisite standard.
https://example.com/files/_mediavault/2015/02/kangeroo.jpgThe standard htaccess file works for the wp-content version.
RewriteRule ^wp-content/uploads(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
My version which now blocks non-login access is
RewriteRule ^files?(/_mediavault/.*\.\w+)$ "index.php?mgjp_mv_file=$1" [QSA,L]
Not quite a full solution as it does not display an alternative jpg, but at least my images are now secure.
- The topic ‘htaccess on multisite’ is closed to new replies.