• I created wordpress multisite on windows server

    the first site works fine for uploads and images

    when I created a new multisite all images are not showing
    where they upload them to (dmuc/uploads) work fine for the main first site
    the new site upload them to for example (/dmuc/uploads/sites/3/2019/08/Ar_logo-1.jpg)

    but when i come to see the image link i found it put the name of the site before it for example

    example.com/esas/dmuc/uploads/sites/3/2019/08/Ar_logo-1.jpg

    gives error not showing anyone know how to help ASAP? i use security plugins and deactivate all of them but no luck

    here the wp config

    define ('WP_CONTENT_DIR',__DIR__ .'/dmuc');
    define('WP_CONTENT_URL','https://195.246.50.245/dmuc');
    define( 'UPLOADS', 'dmuc/uploads' );
    
    /* Multisite */
    
    define('MULTISITE', true);
    
    define('SUBDOMAIN_INSTALL', false);
    
    define( 'DOMAIN_CURRENT_SITE', '195.246.50.245' );
    
    define( 'PATH_CURRENT_SITE', '/' );
    
    define('SITE_ID_CURRENT_SITE', 1);
    
    define('BLOG_ID_CURRENT_SITE', 1);

    for htaccess i use security plugins so will find it long

    [[Large code excerpt removed by moderator per forum rules. Please use Pastebin or a Gist for all large code excerpts, they work better anyway.]]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter emadhamdy2002

    (@emadhamdy2002)

    You need to check the following regex in your htaccess file:

    RewriteRule ^([_0-9a-zA-Z-]+/)?https://195.246.50.245/dmuc/uploads/(.+) dmuc/uploads/blogs.dir/3/files/$2 [L]

    Use this site to understand what does above regex do. You will need to add the regex with escaped slashes on above website so that it can parse and explain the logic:

    ^([_0-9a-zA-Z-]+\/)?http:\/\/195.246.50.245\/dmuc\/uploads\/(.+) dmuc\/uploads\/blogs.dir\/3\/files\/$2 [L]

    • This reply was modified 5 years, 3 months ago by Samuel O..
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image paths issues for multisites’ is closed to new replies.