WordPress.org

Forums

WordPress MU Domain Mapping
problem with subdirectories (7 posts)

  1. Fulgence Ridal
    Member
    Posted 2 years ago #

    Hello,
    First : thanks you for this powerful plugin.

    But i'm unable to understand and solve a big problem for me :
    my configuration :
    define('SUNRISE', 'on');
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.mainsite.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 17 );

    ----
    in fact, when i create a new blog and attach a new url evrythings work good.
    but when i want to create a folder blog. like http://www.mainsite.com/newblog/

    it creates a new blog, but if i want to access to this new blog, it goes to the main site with the url of the new blog :
    http://www.mainsite.com/newblog/ -> it shows : ww.mainsite.com content.
    idem with ww.mainsite.com/newblog/wp-admin it shows panel of the main site.

    I've tried a lot lot of things and always the same ...

    so what to do to solve my problem ?

    thanks a lot

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    That sounds like mod_rewrite is not enabled in your web server config.

  3. Fulgence Ridal
    Member
    Posted 2 years ago #

    thanks a lot for your help ... i forgot to put .htaccess
    ----
    SetEnv PHP_VER 5
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    -----
    i really don't know what's going on ;-)
    RewriteEngine On // enable mode_rewrite ? (don't know)

  4. Fulgence Ridal
    Member
    Posted 2 years ago #

    I'm wondering if there is a way to flush or delete informations of domain mapping plugin ?

  5. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    @Theeponymus - the rewrite rules above aren't for domain mapping. WP needs those whether or not you have domain mapping installed.

    Yes, you can uninstall the plugin and remove the database tables it creates.

  6. Fulgence Ridal
    Member
    Posted 2 years ago #

    thx...

  7. Fulgence Ridal
    Member
    Posted 2 years ago #

    thanks !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress MU Domain Mapping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic