• Resolved atharqureshi

    (@atharqureshi)


    Hi champs,

    I am wondering around the WP forums since long but couldn’t fix my problem with the provided solutions. Can anyone help me please? It’s getting critical.

    The images I am uploading to my child website under WP multisite are not showing up on the website, neither in the media library. The primary site is working fine. I am using sub-folders for sub sites. My HTACCESS file is as below:

    RewriteOptions inherit
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    Primary website: https://www.halalway.com.au
    child website: https://www.halalway.com.au/hcsa

    Please tell me what I need to do in order to fix this dirty default ill.

    Thanks, Athar.

Viewing 16 replies (of 16 total)
  • Thread Starter atharqureshi

    (@atharqureshi)

    Thank you @ipstenu and @jefferisp7.

    I have resolved this problem by following the option 3 above. I find this the easiest way.

    But to do that, you have to first remove the default following line under ‘#upload files’:
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    and then add the redirect, otherwise, the individual force-redirect will not work.

    Let’s hope WP will bring an update that resolve this ill for all.

    Regards.

Viewing 16 replies (of 16 total)
  • The topic ‘Images not loading in Multi site environment.’ is closed to new replies.