WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Brand new WP install thinks it's too old for sub-directory structure? (7 posts)

  1. AsraiLight
    Member
    Posted 1 year ago #

    I just installed a brand new, fresh WP install on a root domain. It's literally a couple of hours old. I was hoping to use this to run a network of sites off of sub-directories, but when I enable the admin tool, I get this restriction:

    Because your install is not new, the sites in your WordPress network must use sub-domains. The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.

    Why does WP think it's over a month old when it's only a day old? How I can I fix this so I don't have to re-configure it later?

  2. Ignore it.

    When it gives you the code for Multisite, it'll have a line that says 'SUBDOMAIN' and it'll be 'true'

    So just change it false while you're doing setup and move on :)

  3. AsraiLight
    Member
    Posted 1 year ago #

    I have to change the .htaccess file too as well then, don't I?

  4. AsraiLight
    Member
    Posted 1 year ago #

    OK, I set up my network using sub-domains, then changed the wp-config based on your recommendation (thanks Ipstenu). I used the settings for the .htaccess that WP gives me, from Site Admin > Settings > Network Setup:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]

    Now I'm getting what appears to be a pretty common error: the images aren't showing up in my subsites. They're uploading correctly to example.com/assets/sites/#/image.jpg, but won't show up even in the media gallery. The links for the images are set to example.com/test/assets/sites/#/image.jpg, so if I remove the /test/ part of the URL, the images in the subsites display correctly. This error happens independently of the theme, and with all of my plugins disabled.

    From what I understand, I need to add a RewriteRule to my .htaccess in order for these images to display properly. I just can't find the right syntax, and all of the other examples I'm seeing online aren't working for my particular case. Most are for WP 3.0, not 3.5.1. Does anyone know off the top of their head what the correct RewriteRule would be?

  5. They're uploading correctly to example.com/assets/sites/#/image.jpg, but won't show up even in the media gallery. The links for the images are set to example.com/test/assets/sites/#/image.jpg

    Assests?

    They should be in example.com/wp-content/uploads/sites/2/2013/05/foo.jpg

  6. AsraiLight
    Member
    Posted 1 year ago #

    I know, I changed the default upload folder to assets, and changed the permalink structure. It's preferred for our needs, and for our custom theme. Doesn't multisite account for this type of customization?

  7. AsraiLight
    Member
    Posted 1 year ago #

    I'll just post a new thread about this. I still wish I knew why the site was saying it was over a month old when it wasn't, though.

Topic Closed

This topic has been closed to new replies.

About this Topic