• Hi,

    first things first: this has been asked before, many times. But: none of the previously suggested solutions work, and in some cases are horribly outdated anyway, and those old topics are closed for comments now..

    Anyway, to my actual problem: I have a working wordpress multisite setup with (mostly) subdomains and two blogs on different domains.

    mod_rewrite is enabled and works.
    my .htaccess is here: https://paste.opensuse.org/8001841 (note: the rewite stuff is at the end)

    My problem: I can’t properly use permalinks – the only thing that works is if i build a custom permalink that starts with /index.php/ but none of the “premade” optons work.

    Any ideas?

    related: is there a script / tool / plugin to do a search and replace operation across all posts in all blogs in a multisite?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I ran your htaccess file through a lint tool and it always adds index.php to the base URL…

    That’s this line if the URL passes through all the other ‘If statements’

    RewriteRule . index.php [L]

    It does that very well… It adds that to the base URL if you add just the bare permalink string…

    /games/ became /index.php… not what you want.

    I think what I’d do is rename my htaccess file to htaccess.bak

    And create a new htaccess file by setting my permalinks to plain and then back to whatever you wish to use from the default selections on the main site first then the subsites as desired later.

    Now check to see if WordPress setup a new htaccess file for you… if it did you can just copy all the stuff for W3TC in at the top above the ‘# BEGIN WordPress’ comment line else look in the network dashboard for the htaccess it wants you to use and copy paste that into a fresh htaccess file… don’t forget the dot in front of the name or Apache won’t know what to do with that.

    Get everything working the way you want and I’d probably add my w3TC stuff last.

    The W3TC htaccess code should still be in the old htaccess.bak file. But W3TC may add that for you if WP can create your new htaccess and W3TC sees it needs to write that again. W3TC is pretty cool about some of that. If it does so then accept the code as added as long as your WordPress code remains intact.

    Thread Starter mhomann

    (@mhomann)

    well now, this is strange – I am trying to get WP to recreate the .htaccess file, but it doesn’t do it.
    I did manage to get w3tc to recreate one with the w3tc settings in it, but no amount of messing around in the permalinks settings gets it to recreate the part for mod_rewrite… and no errors in the webserver error logs, either.

    on the other hand, permalinks do work (like before), as in they need an /index.php/ at the start.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wordpress multisite and permalinks – again’ is closed to new replies.