• I installed a couple of times WP MU, and followed all directions here:
    http://codex.ww.wp.xz.cn/Create_A_Network

    I installed WPMU for directories (not for subdoman).

    On main blog everithing is OK.

    On second blog (that I added and called “mag” on /mag subdirectory)
    http://www.domain.com/mag/) I have error.

    On back end all images are OK, showing on correct path:
    /mag/files/2012/01/6402.jpg

    But on front end, on posts, images are showing path without /mag/:
    /files/2012/01/6402.jpg

    What can be a problem?

    My .htaccess is

    # BEGIN WordPress
    <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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    wp-config.php details:

    define('DB_NAME', 'xxxxxxx');
    
    define('DB_USER', 'xxxxxxxr');
    
    define('DB_PASSWORD', 'xxxxxxx');
    
    define('DB_HOST', 'localhost');
    
    define('DB_CHARSET', 'utf8');
    
    define('DB_COLLATE', '');
    
    ...
    
    define('WP_DEBUG', false);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'mysitename.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Most likely it’s your httpd.conf file NOT having ‘AllowOverride’ set to ALL.

    The URL of /files/blahblahblah is correct 🙂

    Thread Starter infoBAR

    (@infobar)

    Ipstenu,
    I all ready asked this to my host provider, and they said that this is ok, AllowOverride is set to ALL

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Then tell them this:

    My .htaccess isn’t being obeyed. It looks like the complex rules for file redirection:

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    Can you please verify that I have permissions to run this?

    Thread Starter infoBAR

    (@infobar)

    well, it is allready in .htaccess

    # BEGIN WordPress
    <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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I get that the line is there. The problem is your server’s ignoring it 🙂

    Which is why you ask your host about it.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Front end image path error’ is closed to new replies.