Support » Networking WordPress » Subdirectory Problems

  • Resolved darcmosch

    (@darcmosch)


    I am having trouble setting up my network. Every site I cannot get to the front or backend of any of my subdirectory sites. All the themes uploaded correctly and everytime I navigate I get a 404 Error and Object Not Found. I am sure the answer is on here somewhere but I cannot find what is my problem. I hope to hear from someone soon. Thanks

Viewing 15 replies - 1 through 15 (of 47 total)
  • Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Did you pick subdomains or subfolders?

    Oh, yes I forgot to mention I sm doing it on XAMPP on a localhost. I am pretty sure from reading about this problem that it is an htaccess problem but I’m not sure how to fix it exactly. In my XAMPP htaccess is in a separate folder called “forbidden” which I think is what is causing the problem but am not sure how to go about fixing it.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    You need to create a NEW htaccess file in the same folder where the wp-config file is and paste in the lines the network setup gave you.

    Ok, I figured it was something like that, so my htaccess file should say:

    AuthType Basic
    AuthName "FORBIDDEN AREA"
    AuthUserfile "../htdocs/forbidden/.htpasswd"
    Require valid-user
    
    RewriteEngine On
    RewriteBase /blog/
    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]

    Last time I did just that, it said that it could not connect to my localhost

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    AuthType Basic
    AuthName “FORBIDDEN AREA”
    AuthUserfile “../htdocs/forbidden/.htpasswd”
    Require valid-user

    Remove that part.

    Ok, I’m almost there! I can now access the sites but only the HTML shows up no images, CSS, JS, etc.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    The htaccess file is not being read properly. talk to your host so they can kick the box into submisison.

    even if it is localhost?

    Then it’s not reading your .htaccess correctly. Make sure allowOverride is set to All on your httpd.conf (or whatever passes for that with XAMMP)

    Ok, I thought I did that, here’s my httpd.conf file:

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    “AllowOverride FileInfo Options” is what you need.

    Ok, so do I replace both of these or either?

    Options Indexes FollowSymLinks Includes ExecCGI
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>

    OR

    #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>

    You need to use CODE tags (the back ticks, it’s the tilde key to the left of the number 1 on most keyboards) to show code.

    Do you mean you have two of those calls in your httpd.conf? What’s the top <Directory...> stuff say?

    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>

    Here is the top directory

Viewing 15 replies - 1 through 15 (of 47 total)
  • The topic ‘Subdirectory Problems’ is closed to new replies.