WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite: working with permalinks, does not work as excpected (7 posts)

  1. simusch
    Member
    Posted 7 months ago #

    I set up a wordpress network on my hosting. there I'd like to have some websites in the future.

    I access the main page through http://wordpress.simonschaller.ch

    I set up a second page under the subdomain http://ovi.inview.ch

    with links in the default permalink-style "?page_id=xy" it works perfectly.2
    but when i change the permalinks to "/%category%/%postname%/" every link leads to the page http://wordpress.simonschaller.ch

    I didn't find a soulution with google... perhaps here I'll find some help?

    Facts:
    WP 3.8
    Plugin "WordPress MU Domain Mapping"
    both sites have the path "/" defined in the mapping-settings

  2. I set up a second page under the subdomain http://ovi.inview.ch

    Did you create a site like wordpress.simonschaller.ch/name or name.wordpress.simonschaller.ch and then map it to ovi.inview.ch?

    Please post your .htaccess file.

  3. simusch
    Member
    Posted 7 months ago #

    none of them...

    under Network-Settings, both of the sites have the path "/"

    Is this the problem?

    When i add a new site with the path "/ovi/" then I always have the path in the URL:

    http: // ovi.inview.ch/ovi/somepage/ (link disabled)

    i have the default .htaccess like shown after setting up the network:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]
  4. When i add a new site with the path "/ovi/" then I always have the path in the URL...

    Yeah, that's how multisite works.

    Primary Network Domain: domain.com
    Site 1: domain.com/site1
    Site 2: domain.com/site2

    OR, if you select sub-domain setup:
    Site 1: site1.domain.com
    Site 2: site2.domain.com

    If your primary domain is "wordpress.simonschaller.ch" then you can add a site like "wordpress.simonschaller.ch/site1" and then map that to "ovi.inview.ch" with http://wordpress.org/plugins/wordpress-mu-domain-mapping/.

  5. simusch
    Member
    Posted 7 months ago #

    So there's no way around, that the URL finally looks like:

    ovi.inview.ch/site1/somepage

    with this setup? Even if it's another domain/subdomain

    I thought that multisite would be a possibility to only have one installation of WP on my hosting and have a few different sites hosted. But when this shows up in the URL, that's no way for me... :)

    Thanks for your help!

    Simon

  6. If the primary domain of the network is "wordpress.simonschaller.ch" then you cannot add a site and have the URL be "ovi.inview.ch/site1/somepage." If you want that then the primary domain of the network must be "ovi.inview.ch."

    The other solution would be to map your domains.

    If your primary domain is "wordpress.simonschaller.ch" then you can add a site like "wordpress.simonschaller.ch/site1" and then map that to "ovi.inview.ch" with http://wordpress.org/plugins/wordpress-mu-domain-mapping/.

  7. simusch
    Member
    Posted 7 months ago #

    I solved my problem. I had to change the line in wp-config.php

    define('SUBDOMAIN_INSTALL', false);

    to "true"

    now, domain mapping works as expected and the permalinks too.

    thanks, simon :)

Reply

You must log in to post.

About this Topic