• Hallo,

    I have problem with the htaccess file of my WP 3.01 when I try to turn it into WPMU.

    When I install WP in subdir (like mydomain.com/wordpress) I have no problem with the multisite option and the htaccess file works perfect.

    The problem is when I try to install WP in the root of the domain (mydomain.com). Everything is OK until I try multisite and I rewrite the htaccess file with the MU content.

    It does not work.

    The htaccess file is:

    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Is it possible generally to install MU in the root so that every new site could have url of the type: mysite.com/new-site?

    If yes, what is wrong here?

    Thank you in advance,

    Bogdan

Viewing 6 replies - 1 through 6 (of 6 total)
  • RewriteBase /wordpress/

    I’m no expert, by far!

    But it looks like the .htaccess rules here are pertaining to a multipsite installed in the /wordpress subdirectory still

    Yep, if you;re putting that htaccess in the root, you’ll have to remove the reference the /wordpress/ and make it just /.

    Thread Starter boggy_bg

    (@boggy_bg)

    Correction: the above htaccess file is the correct one when installation is in the subdir (/wordpress).

    The file that does not work in the root installation is:

    RewriteEngine On
    RewriteBase /    # the difference is here
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    ‘wp-config.php’ is according to the installation.

    Did you put a new install in the main folder, or did you just move the one you had?

    Because I know it works. ??

    Thread Starter boggy_bg

    (@boggy_bg)

    Yes, I put fresh Bulgarian WP 3.01 installation in the root and everything was OK until I tried multisite option.

    Have you tried root installation with the latest version?

    Yes, I test it pretty much weekly on different servers. (clients, usually)

    You said Bulgarian version – any chance you can install the English version first, then add the Bulgarian language pack once it works?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPMU root installation’ is closed to new replies.