The MU forums have moved to WordPress.org

WordPress MU Option Subdirectory install (7 posts)

  1. samaka
    Member
    Posted 17 years ago #

    Hi,

    Il's my first post in WordPress Forum.

    I'm have setup WordPressMU. We are planning on using the subdirectory method of blog access blogs.example.com/name. I am now testing the installation by setting up a blog for myself. I go ahead and create a blog and get the activation email from the blog server. I click the link to activate the blog and this is also successful. However, when I try to login to the blog using the link http://blogs.example.com/toto/wp-login.php I get a error code "Not Found The requested URL /toto/wp-login.php was not found on this server"

    When I check the folder /var/www/html/blogs.example.com/toto, there isn't. It seems for me that Apache get me back this error in this case.
    I am using a pretty generic RedHat installation. The DocumentRoot for the VirtualHost blogs.example.com is /var/www/html/blogs.example.com. The rewrite module is specified in the httpd.conf file as below :

    RewriteEngine On

    NameVirtualHost *:80

    <VirtualHost *:80>

    DocumentRoot /var/www/html/blogs.example.com
    ServerName blogs.example.com
    ServerAlias blogs.example.com
    ErrorLog /var/log/httpd/blogs.example.com.net-error_log
    CustomLog /var/log/httpd/blogs.example.com-access_log common
    DirectoryIndex index.php

    <Directory />
    AllowOverride FileInfo Options
    </Directory>

    </VirtualHost>

    The apache error log file also states that the file /toto/wp-login.php was not present :
    [Thu Apr 26 11:50:28 2007] [error] [client 192.168.1.15] File does not exist: /var/www/html/blogs.example.com/toto

    My .htaccess config is as below :

    RewriteEngine On
    RewriteBase /

    RewriteRule ^(.*/)?files/$ index.php [L]
    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 had try to test this .htacces's config but unfortunately :

    RewriteEngine On
    RewriteBase /

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

    uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    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]

    PS : ls -l .htaccess
    -rw-r--r--

    Do you have any suggestions on what might be wrong? or they are any WordPress Mu installation for the subdirectory option?

    Thanks in advance.

  2. andrea_r
    Moderator
    Posted 17 years ago #

    "When I check the folder /var/www/html/blogs.example.com/toto, there isn't. "

    There won't be. It's *virtual*. Yes, even for subdirectories.

  3. samaka
    Member
    Posted 17 years ago #

    OK.

    However, when I try to login to the blog using the link http://blogs.example.com/toto/wp-login.php I get a error code "Not Found The requested URL /toto/wp-login.php was not found on this server".

    How to resolve this problem?

    Thanks in advance.

  4. hempsworth
    Member
    Posted 17 years ago #

    I have found this problem as well, however it always works for me when I add a trailing slash, like so:

    http://blogs.example.com/toto/wp-login.php/

    Like I said, fixes the 'bug' but I'm still wondering why I have to add a trailing slash...?

  5. samaka
    Member
    Posted 17 years ago #

    Hi,

    Unfortunately, I add trailing slash. I get the same error.
    How to resolve that ? By taking the WordPress MU 1.2.0 or which one version hasn't this bug.

    Thanks in advance.

  6. drmike
    Member
    Posted 17 years ago #

    Does /var/www/html/blogs.example.com/wp-login.php exist?

    If not, where is the file?

  7. andrea_r
    Moderator
    Posted 17 years ago #

    Sometimes MU gets picky if it's not in the root directory. first, make sure the file is there on the server.
    Second, search for the right problem.
    http://mu.wordpress.org/forums/search.php?q=file+not+found

About this Topic