WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite & Pretty permalinks (23 posts)

  1. sassafrascal
    Member
    Posted 1 year ago #

    Hello, I have been scouring the forums trying to correct an issue I have with a Multisite installation with no success yet.

    Here is my site... http://www.gloconj.com

    I have installed WordPress 3.4.2 & enabled multisite with subfolders.

    Created posts (default permalinks)
    Installed Buddyress
    And created Forums

    The problem is that all three won't work together...
    My posts only work with the default permalink structure.
    Buddypress requires custom permalink structures.

    To fix this I used custom permalinks and a plugin called "advanced permalinks" to correct my posts so that they work with custom permalinks.

    Then I activated the forums... They did not work until I deactivate the "advanced permalinks" plugin, causing the posts to no longer work.

    I have tried deactivating all plugins at the request of some searches I have done and it still did not work.

    Is there a way to get custom permalinks to work with my posts? They are the only thing broken at this point.

    Static pages work fine.
    Subsites work fine.

    here is my .htaccess code & Wp-config.php. Any help would be greatly appreciated!

    Thanks,
    Sharon

    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]
    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'www.gloconj.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
  2. Which forums are you using? bbPress 1.x or 2.x?

    Also have you asked about this on BuddyPress.org?

  3. sassafrascal
    Member
    Posted 1 year ago #

    Buddypress 1.6.1
    bbpress 2.2.2

    I did not check with Buddypress because even when buddypress is removed the custom permalinks in wordress do not work, only default. So I don't believe it is an issue within buddypress. That fact that buddypress forces you to use custom permalinks just brought the issue to light.

    It seems everything works perfectly except anything associated with the "blog"slug (Archives, Categories, & Posts).

  4. @mercime
    Volunteer Moderator
    Posted 1 year ago #

    You need to enable mod rewrite for pretty permalinks. Are you on Windows server?

  5. I did not check with Buddypress because even when buddypress is removed the custom permalinks in wordress do not work, only default.

    You were unclear on that one. If Pretty Permalinks don't work, nothing's gonna work right.

    Did they work before you turned on Multisite?

  6. sassafrascal
    Member
    Posted 1 year ago #

    @Mercime - I am on a Linux Server.

    Mika, I was unclear about that I apologize, I was trying to get in as much detail about my install as I could so you'd have all the facts about the project. It just confused the matter.

    Yes pretty permalinks worked on a single install that I had in a subfolder. I then decided to go with a multisite in the root - I never tested pretty permalinks on the root. I assumed they would work since they did in the subfolder install.

  7. Yes pretty permalinks worked on a single install that I had in a subfolder. I then decided to go with a multisite in the root - I never tested pretty permalinks on the root.

    Aha! Did you move WordPress?

  8. sassafrascal
    Member
    Posted 1 year ago #

    Nah - I did a fresh install.

    I still have that subfolder install up and running though until I can transfer all the work I did on that site to the multisite... That would not mess with the permalinks would it?

  9. It shouldn't.

    Okay so you have domain.com/ (Multisite) and domain.com/wordpress (single site)

    Is that your full .htaccess?

  10. sassafrascal
    Member
    Posted 1 year ago #

    Okay so you have domain.com/ (Multisite) and domain.com/wordpress (single site)

    Yes that is how it is set up.

    I have two .htaccess files - one for the single install in the subfolder and another in the root for the multisite install (which has been altered according to the network settings).

    I found the blurb below under the "help" tab on my network setup page - does this mean blogs are not an option with multisites?

    The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.

    The thing is I am not trying to set up blogs in subfolders - I am trying to use them on the main site as my content. The above statement has me worried that it's not possible.

  11. Right, was that the full .htaccess that was in root? :)

    The thing is I am not trying to set up blogs in subfolders - I am trying to use them on the main site as my content.

    Multisite comes in two flavors. Subdomain and subfolder. The .htaccess file you posited above is for subfolder. So ... I think I'm missing something.

    What do you want your subsites to look like?

    sub.domain.com or domain.com/sub ?

  12. sassafrascal
    Member
    Posted 1 year ago #

    Yes, that was the full .htaccess.

    I choose Subfolders.

  13. Okay, so when you said "I am not trying to set up blogs in subfolders" what you mean is "I'm using WordPress Multisite to make subfolder sites, but I'm not using them as blogs."

    While inaccurate, most people use 'site' and 'blog' interchangeably. ;) And in your case, you're using Subfolders. Ergo this warning is 100% correct:

    The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.

    Now you can force this in your setup, but making 'subdomain' set to false in your defines. Did you?

    Honestly, without knowing if Permalinks were working before you set up Multisite in root, we can't know if this is a server error or not.

  14. sassafrascal
    Member
    Posted 1 year ago #

    It was already set to false when I copied the provided code. I apologize if I am being confusing in my statements. This is my first time using wordpress - I am attempting to turn it into a CMS.

    I am creating a local county website - the main folder is reserved for buddypress activity and my posts that will fill the site with articles and content. The subsites are things like "local recipes", "local news", "local reviews" - They will be all different themes.

    If I can't force blogs on the main site. I suppose I could create another subfolder site and funnel the posts and content to the main site through feeds. I just hate to do it that way - it seems like a band-aide.

    If I turn off multisite to see if the pretty permalinks work? Will I lose the bit of work I have done already?

  15. It's okay :) I'm being very specific with what terms I use so you can learn (and so I can be sure we're on the same page). You can't magically know new stuff without being taught! :D

    It was already set to false when I copied the provided code.

    Okay, thats good! We know what we're talking about now.

    Let's step back. How deep into this are you? Is the site live and heavily trafficed? Will you lose a lot if you start over?

  16. sassafrascal
    Member
    Posted 1 year ago #

    It is live, but it's still in the testing phase so there's not a lot of traffic.

    I am concerned about loosing the modifications I have made on some PHP & CSS files within the theme - but I can back up all those files and hopefully get that cleaned up again.

    I think it is worth it to start over if I can get this resolved.

    I really appreciate your taking the time to help me through this, thanks :)

  17. I am concerned about loosing the modifications I have made on some PHP & CSS files within the theme - but I can back up all those files and hopefully get that cleaned up again.

    Yeah, just save your theme files :)

    I'm sorry I can't magically fix it :(

  18. sassafrascal
    Member
    Posted 1 year ago #

    I certainly didn't think you could magically fix it. I was just super hesitant to start again.

    Thankfully there is good news, I backed up the site, deleted and re-installed. Pretty permalinks are working on the single install - then again with the multisite configuration on the main site. Wahoo!

    So one of two things has happened here.

    1- Since my site is so new I decided to test drive 3.5 - maybe that corrected the issue.

    2- A plugin or theme was to blame.

    I plan to add each theme and plugin back one at a time - testing each step of the way to find the culprit.

    I will mark this as resolved when I find the culprit or deem 3.5 to have corrected the issue.

    Thank you for helping me decide to restart this project - it has already done so much. Sometimes you just have to bite the bullet :)

  19. sassafrascal
    Member
    Posted 1 year ago #

    Hi, I'm proceeding with my site now that the Blogs on the main site are working with pretty permalinks and discovered that the admin panel to my subsites are broken. They are stuck in an infinite loop.

    Not the subsite URL itself - just the admin panel to the subsite.

    Any thoughts?

  20. sassafrascal
    Member
    Posted 1 year ago #

    I found this article addressing the issue but my host provider says they are reading it correctly.

    http://wpmututorials.com/installation2/subfolder-blog-have-no-theme-styles/

    I am posting here because I suspect these two issues are related... could they be?

  21. sassafrascal
    Member
    Posted 1 year ago #

    Not quite like that. The error is only on the admin side of Subsites. I am able to log into the network and the main site but not the admin section of subsites/subfolders.

    I can see http://www.mysite.com/myfolder/
    (http://gloconj.com/library/)

    I get an infinite loop with http://www.mysite/myfolder/wp-admin (http://gloconj.com/library/wp-admin/)

  22. sassafrascal
    Member
    Posted 1 year ago #

    Since this is a different issue I have started a new thread.

    http://wordpress.org/support/topic/wordpress-35-multisite-can-not-access-subsite-dashboards

Topic Closed

This topic has been closed to new replies.

About this Topic