• Resolved joedepo

    (@joedepo)


    I have seen this being a common occurence but havent seen the exact amswer. My issue is that when I create a site on my mu in subdirectory images don’t appear. i know the issue i don’t know how to fix it. my main site is mydomain.com and images work great but when i create a sub site mydomain.com/newsite the images try to reroute to each subdirectory which the images arent clearly there. so it looks like this

    mydomain.com/images

    when i go to subdirectory the images think they should be at

    mydomain.com/newsite/images

    clearly not there it doesn’t exist. how do i fix this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter joedepo

    (@joedepo)

    update: all subdirectories get thrown off including wp-admin

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    They should be pointing to mydomain.com/site/files/ not images.

    Did you change them?

    Thread Starter joedepo

    (@joedepo)

    I don’t think i did, what happens is for some reason the whole site tries to access wp-admin from the actual sub directory. even if they tried to access their admin panel it wont because the admin panel is not in their subdirectory when they are logged in. unless i have my .htaccess file setup wront this is what it lookes like

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]\
    
    # END WordPress

    all my images and and files get pointed to thier subdirectory. that is my issue in lamens terms i guess. how do i fix that? do my users have access to the wp-admin

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    what happens is for some reason the whole site tries to access wp-admin from the actual sub directory.

    The … what now?

    You make a subdir blog domain.com/sitename

    You go to domain.com/sitename/wp-admin to access the dash

    That’s how it’s supposed to work.

    Thread Starter joedepo

    (@joedepo)

    okay that does work but no images pop up when i go to that.. i just have a bunch of content… and what should be the content inside of my index.html file in my root folder

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    There isn’t an index.html file.

    /sitename/ isn’t a real folder (and if you made one, delete it), it’s virtual.

    Images not popping up, however, suggests a htaccess issue. What’s in yours?

    Thread Starter joedepo

    (@joedepo)

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]\
    
    # END WordPress
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s the one for SubDOMAINS. Which you are not using if your site is domain.com/subsite.

    You want the subfolder one from here: http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite

    Thread Starter joedepo

    (@joedepo)

    you are a genius. something so simple became so puzzling. thank you so much 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘subdirectory’ is closed to new replies.