The MU forums have moved to WordPress.org

Permalinks not working correctly (8 posts)

  1. Krizo
    Member
    Posted 17 years ago #

    I have installed Wordpress MU and now i have a problem.

    http://sobotainfo.com/blog/ - The original blog without the subdomain works the way it should.

    Then I added another blog - http://krizo.sobotainfo.com/blog/
    In this blog the permalinks aren't working.

    I don't know what seems to be the problem.

    Can anyone help?

    And also why does it add another "blog/" in this url http://sobotainfo.com/blog/blog/2006/09/17/hello-world/ ?

  2. andrea_r
    Moderator
    Posted 17 years ago #

    Someone else is having an issue with it sticking blog/ in the URL's. By chance did you use the latest nightly?

  3. Krizo
    Member
    Posted 17 years ago #

    I'm using wordpressmu-1.0-rc4.

  4. nexia
    Member
    Posted 17 years ago #

    by serverside settings, subdomains creation over CPanel is managed on pure domains only, without the trailing directories.

    that's a known issue on most of the sub-domain hosters, so the best thing you can do is drop your /blog/ thing and install WPMU directly on your domain. remember that you can use a index.html file for your front page, and add content without touching wordpress that way.

  5. andrea_r
    Moderator
    Posted 17 years ago #

    I'm uing the same build as you are then. Any chance you can install in the root as per nexia's suggestion?

    What's your htaccess like? Did you change the permalink settings?

  6. Krizo
    Member
    Posted 17 years ago #

    My .htaccess file:
    RewriteEngine On
    RewriteBase /blog/

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^www\.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

    #uploaded files
    RewriteRule ^(.*)?/?files/(.*)

    wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    I will try to install in the root directory if there really is no other way...

  7. andrea_r
    Moderator
    Posted 17 years ago #

    "RewriteBase /blog/"

    Change it to just /. that's why it's adding the extra /blog/ in there.

  8. Metzae
    Member
    Posted 16 years ago #

    I was having a similar problem across several sites. I converted my site from WordPress to WordPress MU, and the permalinks simply stopped working. It didn't matter what plugins or advice I've tried, nothing worked. But after reading this post, all I had to do was add these lines...

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^www\.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

    ...to the default .htaccess file that came with the installation. BAM! Instant success.

    Just thought I'd share.

About this Topic