The MU forums have moved to WordPress.org

Absolute path vs relative? (1 post)

  1. MMumpower
    Member
    Posted 14 years ago #

    Hi there!

    I'm new to MU, but I can't seem to find the problem here, despite knowing a bit about Wordpress.

    For some reason, a lot of the paths to images are showing up like this:
    http://metasights.com/wyatthadisson/wp-content/home/msights/public_html/wp-content/themes/default/screenshot.png
    As opposed to:
    http://metasights.com/wp-content/themes/default/screenshot.png

    Aside from manually changing the source code to point to it, which I shouldn't have to or need to do, I can't find out what the problem is. I'm sure it has something to do with the rewrite rules in the .htaccess file. Here is the .htaccess file's contents:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Any help would be much appreciated!

About this Topic

  • Started 14 years ago by MMumpower