WordPress.org

Ready to get started?Download WordPress

Forums

WP 3 multisite (10 posts)

  1. zimmicz
    Member
    Posted 4 years ago #

    Hello there,
    recently i've installed the latest RC and tried to set up a multisite on http://www.zimmi.cz. Everything went OK until i tried to access installed blogs on subdomains (try http://blog.zimmi.cz). It always returns error 403. I'v read a bunch of tutorials so far, none of them mentioning this problem. What might i have done wrong? Do i need to set up some DNS records? Thanks for reply.

    PS: I installed WP to the root directory, subdomains are located in subfolders (meaning blog.zimmi.cz is located on zimmi.cz/blog but accessible as subdomain).

  2. Your DNS is pointing to the correct IP address (both resolve to the same) so DNS looks right.

    I think it's your Apache2 setup. The "403 not authorized" is what I get when I go to http://blog.zimmi.cz/ and http://www.zimmi.cz/ does not show me a WordPress install. http://www.zimmi.cz/blog/ also gets me 403 as well.

    Once you get rid of the Apache2 issue you should be fine.

    Also give Otto's http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ just in case.

  3. You need a wildcard record in Apache.

    ServerAlias zimmi.cz *.zimmi.cz

    is what it should look like.

  4. zimmicz
    Member
    Posted 4 years ago #

    Hi guys,
    thanks for your answers. As i am not very familiar with these things, i made a screenshot of what is currently set on my hosting (see here). Should i add/change something there, or is it alright?

    I contacted my hosting provider and i was told that "blog" and "knihy" directories are empty (i know that) and that this is why i get 403 error. But they should be empty, right? Or do i need to copy some files from my root directory WP installation to those subdirectories? Or do i need to add some code to htaccess file?

    My htaccess looks like this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
  5. The extra blogs/sites are *virtual*. They do not need folders on the server to exist, WordPress serves them out of the database directly.

    You need a wildcard subdomain record in your DNS and you need the wildcard in Apache. You host can tell you if they support wildcard subdomains or not.

    No folders need to be there.
    No extra records for the subdomain blogs need to be there.

  6. zimmicz
    Member
    Posted 4 years ago #

    Guys thank you all. It is finally working :-)

  7. zimmicz
    Member
    Posted 4 years ago #

    Hmm another question (hope it is the last one). I want to have some kind of portfolio at http://www.zimmi.cz - i made a simple index.html and uploaded it to the root directory of my domain. Since then blog.zimmi.cz displays the same content as http://www.zimmi.cz (that portfolio), dunno why. Is there any way to use that ordinary html file as a homepage, or do i have to get along with WP?

  8. Yeah, can't do that. :D All blogs go thru the root of the site.

    If you want something different there, put it in a wordpress theme. Set that theme on the main blog. Presto!

  9. zimmicz
    Member
    Posted 4 years ago #

    Yep, i got it, deleted the whole default theme and replaced it with my own homepage :o) Now it works like charm (except for favicons. Where the heck should one place them to make them display on subdomains?!)

  10. For favicons on subdomains, it's easiest to place them in the theme folder.

    There's a favicon plugin in the repo where you can set them individually for each blog too. It doesn't say it's for multisite/wpmu but it does work.

Topic Closed

This topic has been closed to new replies.

About this Topic