• Resolved Filozofer

    (@filozofer)


    I’m currently facing a wordpress multisite / permalink / rewrite rule problem. My wordpress website use multi-site. I’ve got the 2014 website link to “exemple.fr” and the second website for 2015 to “exemple.fr/2015/”. As you might guess, I’m using subfolders configuration for multisite.

    The problem occur on the second website (2015) which return 404 errors on every page except the home. The first one work as excepted. What I have already try:

    – mod_rewrite is enable
    – my vhost file have the instruction AllowOverride All
    – Here’s my .htaccess file which is the default wordpress one for multisite with subdirectories:

    # BEGIN WordPress
    
    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]
    
    # END WordPress

    – The problem dissapear if i set permalinks to “default” on the 2015 website but my links are not like I want.

    Any suggestions ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The problem dissapear if i set permalinks to “default” on the 2015 website but my links are not like I want.

    Make a site called ‘me2015’ and see if THAT works. I wonder if the 2015 being all numbers is the issue since it might be conflicting with the archives on your main site.

    Thread Starter Filozofer

    (@filozofer)

    Finally make it work after hours of trying.
    The problem come from a conflict with the plugin “Polylang” (https://www.ads-software.com/plugins/polylang/). This plugin was install on the website and not even use or configure.

    When the plugin is activated on the website and anyone save the permalinks configuration, it broke the configuration (in database the wp_option rewrite_rules was missing the “blog/” in front of all patterns).
    Once we disable the plugin and save again the permalinks configuration it work again. I think no one have save this configuration since the plugin was install on the website, last week my client have probably try to change the permalinks configurations and stumble on that problem.

    Do not forget to try to disable all plugins when debugging a particular sneaky bug (and not after 1 day of debugging like I have done will be probably better), that’s my advice !

    I’m having a similar problem, except my website is not multisite.

    I’m using WooCommerce and Transposh.

    What is really frustrating is on one website, the permalinks work just fine with the main being post title, and the WC permalink as default.

    The other site (which is basically the same structure) doesn’t work. I have to set the main permalinks to default, and the WC permalink as product. The minute I switch the site to French, when I go to a product category, I get a blank page.

    I’ve gone over and over the 2 sites, trying to find out what might be the difference that is making one work and one not, but no luck yet.

    Any ideas?

    Thread Starter Filozofer

    (@filozofer)

    Have you tried to disable all your plugins ?

    Yeah, I tried that yesterday. It seems like it must be a WC/Transposh thing because when the permalinks are set up how I want, the products and other pages display fine in English. When I switch to French, the products disappear, though the other (non-product) pages work.

    Thread Starter Filozofer

    (@filozofer)

    Maybe a configuration of the Transposh plugin ?
    https://fr.www.ads-software.com/plugins/transposh-translation-filter-for-wordpress/

    I see this plugin is not update since 11 month and have no support. I hope you will find what you need inside the plugin configuration.

    @filozofer
    My hero! PolyLang was indeed the problem for me, too.

    Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalinks not working – 404 errors multisite’ is closed to new replies.