• Hello there,
    recently i’ve installed the latest RC and tried to set up a multisite on https://www.zimmi.cz. Everything went OK until i tried to access installed blogs on subdomains (try https://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).

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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 https://blog.zimmi.cz/ and https://www.zimmi.cz/ does not show me a WordPress install. https://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 https://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/ just in case.

    You need a wildcard record in Apache.

    ServerAlias zimmi.cz *.zimmi.cz

    is what it should look like.

    Thread Starter zimmicz

    (@zimmicz)

    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]

    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.

    Thread Starter zimmicz

    (@zimmicz)

    Guys thank you all. It is finally working ??

    Thread Starter zimmicz

    (@zimmicz)

    Hmm another question (hope it is the last one). I want to have some kind of portfolio at https://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 https://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?

    Yeah, can’t do that. ?? 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!

    Thread Starter zimmicz

    (@zimmicz)

    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?!)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WP 3 multisite’ is closed to new replies.