Wordpress MU Sub Domain

Discussion in 'PHP' started by webboy, Sep 5, 2008.

  1. #1
    Hi all

    I have installed word press mu and having a problem viewing the sub domains sites as the just product a 404 error

    the installation is like this

    /public_html/folder/wordress-mu
    /.htacces file *

    in my public root folder I have my main website which I don't wish to touch

    I can get to the word press mu main administration page by calling http://www.domain.com/wordpress-mu-1.5.1/wp-admin

    but cannot get to the 3 sub domain when calling feet.domain.com/wordpress-mu-1.5.1/wp-admin

    do I need to put in a redirect every time when I create a site or do I have put the wordpress . htaccess file in another directory

    I have tried to put this file in the main root area which give me a problem

    RewriteEngine On
    RewriteBase /wordpress-mu-1.5.1/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ /$1/ [R=301,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]

    <IfModule mod_security.c>
    <Files async-upload.php>
     
    webboy, Sep 5, 2008 IP