WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] URL to theme resources not being correctly resolved (4 posts)

  1. alesub
    Member
    Posted 1 year ago #

    Hi,

    After activating the network settings normally and working on subfolders mode, when I create a new site, the site tries to load the theme resources in the following way:

    mysite.com/subsite/wp-content/themes/mytheme/style.css

    Which is ok, but then that url is not resolved correctly to the real location of the file.

    There are no active plugins, the theme is the twenty eleven, and the htaccess file only have the standard lines for multisite.

    Anyone else having the same issue?

  2. Did you change your .htaccess correctly? That should resolve the issue.

  3. alesub
    Member
    Posted 1 year ago #

    The htaccess was ok. What fixed this issue was an additional file: nginx.conf

    With the following code:

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename) {
     rewrite ^.+?(/wp-.*) $1 last;
     rewrite ^.+?(/.*\.php)$ $1 last;
     rewrite ^ /index.php last;
    }
  4. Oh, that works out to the same thing you know :) You'll have to be up front telling folks you use nginx, though, it's still on the minority.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.