WordPress.org

Ready to get started?Download WordPress

Forums

Standard site with WP Multisite (CSS not loading) (6 posts)

  1. JamiesWright
    Member
    Posted 2 years ago #

    Hi,
    I'm currently helping a client build a website and uploading it, but realized that there is WP multisite installed on the server.

    My site is a standard html site with external stylesheet. Everything is working locally, but as I upload the site, the css, images, and js files would not load. After some searching, I came to believe that the htaccess file is responsible for that.

    I'm not familiar with htaccess files, and would like to know how can I load the files from my index.html. Do I move the folders to another location, or do I edit the htaccess file to load the files.

    Thanks

  2. 1) Make sure your .htaccess is correct. Go to Network Admin -> Settings -> Network Setup. Does your .htaccess match that one? Yes? You're good.

    2) Does the site work WITHOUT your external stylesheet? Like does any other theme work?

  3. JamiesWright
    Member
    Posted 2 years ago #

    I'm not sure if the .htaccess matches as I'm only using GoDaddy's FTP file manager to access the files. But I've edited the .htaccess to this code.

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    All the WordPress site themes are working properly. The only thing that isn't working is the html site which I've uploaded. The url loads the index file, but could not locate the CSS directory, images and js directory too. An attempt to browse the css directory through the browser leads to an error page.

    Is it actually possible to upload a non-wordpress site into a server running WP multisite? I'm not sure what other information I could provide at the moment, please let me know if there's anything I could provide. Thanks!

  4. I'm not sure if the .htaccess matches as I'm only using GoDaddy's FTP file manager to access the files.

    How are you not sure? Look at the one in file manager. Look at the one on Network Admin -> Settings -> Network Setup. Do they match? This is not complicated :) It's just a look and see.

    The url loads the index file, but could not locate the CSS directory, images and js directory too. An attempt to browse the css directory through the browser leads to an error page.

    Okay. Then the URLs in your html page are wrong. Go figure out the right ones.

    (Without seeing your site, I can't tell you what the right values are. View the source of a page that calls the RIGHT css/js etc, and see where it's pointing.)

    Also... why are you using external HTML pages and not just make WP pages for the content?

    Is it actually possible to upload a non-wordpress site into a server running WP multisite?

    Depends on what you mean by 'upload' and 'non-wordpress site.' My Multisite install sites beside other, non Multisite, applications (like a MediaWiki install and a gallery). You can have a folder with your HTML too, if you want.

  5. JamiesWright
    Member
    Posted 2 years ago #

    Thanks for your response. I believe the network setup is in the WP main site? And I do not have access to that. I'm only adding the files with ftp manager.

    I believe that the path is correct. index file is in the directory with css, and js folders. and from the index, css is called with css/style.css. Everything is working locally. The webpage is calling for the right path from the web server, but it gives an error 301 (moved permanently).

    I'm pretty positive it's not a problem with the path, because I've tried placing the stylesheet in the same folder as the index, and linking it with just href="style.css" but it still does not fetch the css file.

    What I actually meant to say is if it's possible to upload a html site without running WP, onto a server running WP multisite? I'm have limited knowledge in this area, and I appreciate your input.

  6. And I do not have access to that.

    Then you're screwed. Sorry, but if you can't get into WORDPRESS, you can't fix things.

    You always need two things:

    1) FTP access
    2) Access to the WP install

    Now. There's a POSSIBILITY you're gonna be real lucky and the issue is just that AllowOverride isn't set to ALL in your httpd.conf file, however since you're on GoDaddy, I happen to know that's set that way by default, unless you're on a Windows Server. You should be on Linux.

Topic Closed

This topic has been closed to new replies.

About this Topic