Title: wordpress multisite and permalinks &#8211; again
Last modified: August 5, 2020

---

# wordpress multisite and permalinks – again

 *  [mhomann](https://wordpress.org/support/users/mhomann/)
 * (@mhomann)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wordpress-multisite-and-permalinks-again/)
 * 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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-multisite-and-permalinks-again%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wordpress-multisite-and-permalinks-again/#post-13213908)
 * 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](https://wordpress.org/support/users/mhomann/)
 * (@mhomann)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wordpress-multisite-and-permalinks-again/#post-13729336)
 * 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.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [mhomann](https://wordpress.org/support/users/mhomann/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/wordpress-multisite-and-permalinks-again/#post-13729336)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
