Support » Networking WordPress » URL to theme resources not being correctly resolved

  • Resolved alesub

    (@alesub)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

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

    alesub

    (@alesub)

    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;
    }
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL to theme resources not being correctly resolved’ is closed to new replies.