• Resolved Jaye

    (@dravenloft)


    I’m getting fed up enough with some of WordPress’ quirks that I’d welcome suggestions of a comparably versatile and easy to use CMS, but barring that I’ve got an issue where on a MultiSite install of WP I have lost access to the media for all the subdomains.

    1) the files are all there with proper permissions
    2) the .htaccess looks like this: `RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress`
    3) This has happened before. This is a restore of the .htaccess file that solved the problem last time

    links:
    main = https://universal-nexus.com
    example subdomain with missing images = https://sandbox.universal-nexus.com

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

    (@dravenloft)

    And, no, I’m not sure how some of the lines of the .htaccess got duplicated (just noticed that while trying to comprehend why the backticks to get the CODE function to work didn’t take). That’s happened sometime in the last 5minutes. But even not-duplicated things were broken so that’s not it.

    Thread Starter Jaye

    (@dravenloft)

    Found Solution

    it’s here

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    #rewriting wordpress stuff to the root
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/wp-((content|admin|includes)|((cron|login)\.php))
    
    #rewriting everying that can't be found to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^index\.php$ - [L] 
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] 
    
    #rewriting everything else to index.php
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteCond %{REQUEST_URI} !^/wp-(content|admin|includes|login|cron)(\.php)?
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images disappeared … AGAIN!’ is closed to new replies.