WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Subdirectory Problems (48 posts)

  1. darcmosch
    Member
    Posted 3 years ago #

    Ok, gotch. I know I didn't do that right but I'm a little spent (and lazy) to go back and fix the link in my previous post, but that is my entire httpd.conf file. The thing that confused me the most is which AllowOverride is WP talking about? I found 3 when I search within the file

  2. Yeah, usually it's the first one, but ... I'm not sure. I don't use XAMPP and my server came set up correctly :/

  3. darcmosch
    Member
    Posted 3 years ago #

    Well damn :/ of course I don't expect you to be an expert in everything. Know anyone who can answer this question and help me?

  4. The thing that confused me the most is which AllowOverride is WP talking about? I found 3 when I search within the file

    In the vhost section pertaining to the account on your box where the multisite install is.

  5. darcmosch
    Member
    Posted 3 years ago #

    in the httpd.conf file?

  6. Yes, because that's where the vhost entries are...

  7. darcmosch
    Member
    Posted 3 years ago #

    Ok, here is what I've done. I did a fresh reinstall of both XAMPP and wordpress 3.1.2. I have done exactly what the steps in the codex have called for.

    I have added to wp-config.php:
    define('WP_ALLOW_MULTISITE', true);
    AND

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/wordpress/';
    define( 'DOMAIN_CURRENT_SITE', 'localhost' );
    define( 'PATH_CURRENT_SITE', '/wordpress/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Next, I created the blogs.dir

    Then created an .htaccess in htdocs and it has these lines of code

    RewriteEngine On
    RewriteBase /wordpress/
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    I still have the exact same problem where only the HTML shows up no CSS, JS, nothing else

  8. Is the htdocs folder the same place where your wp-config.php folder is?

    Note: You CANNOT have WordPress MultiSite in a subfolder unless the URLs include the subfolder.

    In single site, you can install WP into domain.com/folder and have it run out of domain.com - You CANNOT do this with MultiSite unless you're super savvy with httpd.conf

  9. darcmosch
    Member
    Posted 3 years ago #

    Ok, it's
    htdocs/wordpress/wp-config.php

    Is it that it's looking for all the info in htdocs and not htdocs/wordpress?

  10. Your .htaccess should be in htdocs/wordpress/ then.

  11. I still have the exact same problem where only the HTML shows up no CSS, JS, nothing else

    And the problem is still the same - it does not matter what you do in that folder if your local setup will not read that htaccess file. You can fiddle with it till the cows come home, but if it ain't being read, there's no joy.

    Reinstalling it will not fix it.

  12. darcmosch
    Member
    Posted 3 years ago #

    Lol it really was something extremely simple, just like always. Thanks for your help Ipstenu! You are a headache saver! Plus you also taught me a lot about how servers work and thanks to you as well Andrea_r!

  13. darcmosch
    Member
    Posted 3 years ago #

    Ok, so I have one more problem which comes from the blogs.dir, I can't upload media to the blogs. I have changed all of my C:/xampp to writable and still same problem. I have heard changing its ownership to nothing would fix it but I am not sure how to do this.

  14. You have to make the \wp-content\blogs.dir folder writeable, specifically. Make sure it is, and that its children inherit permissions.

  15. darcmosch
    Member
    Posted 3 years ago #

    Right, by right-clicking it changing it from read only.

  16. Yeah, Windows man. *sigh* Why they think THAT is sensible...

  17. darcmosch
    Member
    Posted 3 years ago #

    Lol I don't know man, I'd go Linux full time if I could work with it better, til then I'm stuck with it. So how should I go about doing it? Changing the permissions

  18. iubneih
    Member
    Posted 2 years ago #

    I just want to say that I had this same problem installing wordpress network on my localhost using xampp. Everything installed correctly but when I went to add a new site, everything would work except you get that 404 error when trying to view the page.

    After hours and hours of searching and testing fixes I finally came across what should have been done correctly the first time. The .htaccess file.

    Since wordpress on my localhost didn't create an .htaccess file, I had to create it myself and when I did it was the wrong file type. So wordpress was not reading the htaccess correctly.

    So just make sure you make the right htaccess file before you try anything else. That's all I needed to do.

Topic Closed

This topic has been closed to new replies.

About this Topic