The MU forums have moved to WordPress.org

baffled (2 posts)

  1. amipaxs
    Member
    Posted 14 years ago #

    hello buddies,

    i'm new in wordpress-mu installation, i did it to a folder named blog in the root of my site,
    so i use this adress to gain access ,btw, i installed using the sub-folders options
    http://mysite.com/blog/

    it displays the blog theme succesfully, but the post's links point to
    http//mysite.com/blog/blog/2009/12/18/my-first-blog

    I noticed the repeated folder /blog on the url ,when i delete the second /blog i can enter my posts.

    my .htaccess

    RewriteEngine On
    RewriteBase /blog/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    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>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    my wp-config.php

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'no');
    $base = '/blog/';
    define('DOMAIN_CURRENT_SITE', 'mysite.com' );
    define('PATH_CURRENT_SITE', '/blog/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );

    how i get rid of the repeated blog in the url
    thnaks in advance

  2. SteveAtty
    Member
    Posted 14 years ago #

    The blog subdirectory inserted by WPMU is its way of identifying the root blog.

    If you're installing in subdirectory mode you really need to install in the root of the website.

About this Topic

  • Started 14 years ago by amipaxs
  • Latest reply from SteveAtty