• Images are not showing up on in image library and individual posts on subsites but are fine on main site. I think it happened after a major update of the Maria database, but I’m not sure. (Many months ago. I gave up on solving the problem earlier.)

    (The URL given is a sample page on one of the subsites residing in a directory.)

    The images are uploaded to https://ssnet.org/wp-content/blogs.dir/12/files, and they show up fine with the direct URL to location.

    The problem is that the blog attempts to access images at https://sabbathissues.org/files/ and I even tried to specify https://sabbathissues.org/uploads in in the multi-site settings, but neither of the URLs work even though they are specified in the upload_url_path settings. Deleting the line doesn’t work either – even after flushing both Litespeed and browser caches.

    I use the Litespeed plugin on a Linux an Apache server (Apache is disabled in favor of Litespeed.)

    My .htaccess file looks like this:

    DIRECT ALL TRAFFIC TO SECURE SITE
    
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] END REDIRECTION TO SECURE SITE BEGIN LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .litespeed_conf.dat - [F,L] marker CACHE RESOURCE start RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts).php - [E=cache-control:max-age=3600] marker CACHE RESOURCE end marker FAVICON start RewriteRule favicon.ico$ - [E=cache-control:max-age=86400] marker FAVICON end marker DROPQS start CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga marker DROPQS end LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END LSCACHE BEGIN NON_LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! marker BROWSER CACHE start
    ExpiresActive on
    ExpiresByType application/pdf A2592000
    ExpiresByType image/x-icon A2592000
    ExpiresByType image/vnd.microsoft.icon A2592000
    ExpiresByType image/svg+xml A2592000 ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/gif A2592000
    ExpiresByType image/webp A2592000 ExpiresByType video/ogg A2592000
    ExpiresByType audio/ogg A2592000
    ExpiresByType video/mp4 A2592000
    ExpiresByType video/webm A2592000 ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType application/javascript A2592000
    ExpiresByType application/x-javascript A2592000 ExpiresByType application/x-font-ttf A2592000
    ExpiresByType application/x-font-woff A2592000
    ExpiresByType application/font-woff A2592000
    ExpiresByType application/font-woff2 A2592000
    ExpiresByType application/vnd.ms-fontobject A2592000
    ExpiresByType font/ttf A2592000
    ExpiresByType font/otf A2592000
    ExpiresByType font/woff A2592000
    ExpiresByType font/woff2 A2592000 marker BROWSER CACHE end LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END NON_LSCACHE BEGIN WordPress Multisite RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*/)?files/$ index.php [L] 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-.) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(..php)$ $2 [L]
    RewriteRule . index.php [L] END WordPress# Google Analytics Integration - Added by cPanel. AddOutputFilterByType SUBSTITUTE text/html Substitute "s|()?||i" END Google Analytics Integration Wordfence WAF php_value auto_prepend_file '/home/ssnet/public_html/wordfence-waf.php'
    php_value auto_prepend_file '/home/ssnet/public_html/wordfence-waf.php'
    Require all denied Order deny,allow Deny from all END Wordfence WAF BEGIN LiteSpeed SetEnv noabort 1 END LiteSpeed RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://ssnet.org/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://bewellandprosper.net$ [NC] RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://sabbathissues.org$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://ssnet.org/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://ssnet.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.bewellandprosper.net$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org/.$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.sabbathissues.org$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org/.$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.ssnet.org$ [NC] Rewrite rule causes jpg requests to fail RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC] SOFTACULOUS Block .htaccess and .htpasswd SOFTACULOUS Block .htaccess and .htpasswd End php -- BEGIN cPanel-generated handler, do not edit Set the “ea-php74” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php74 .php .php7 .phtml php -- END cPanel-generated handler, do not edit protect wpconfig.php order allow,deny deny from all

    There is no ms-settings file in my “wp-includes” directory.

    • This topic was modified 1 year, 5 months ago by inge12. Reason: tried to add wp-config.php but script didn't seem to like it much
    • This topic was modified 1 year, 5 months ago by inge12.

    The page I need help with: [log in to see the link]

  • The topic ‘Images not showing up on subisite’ is closed to new replies.