Permalinks showing index.php

Can you try the following?

  1. Right-click on the site in Local’s sidebar
  2. Go to “Open Site SSH”
  3. Enter the following commands
    • wp rewrite flush
    • wp rewrite structure '/%postname%/'
    • wp rewrite flush again for good measure

Ok, I did that and it did affect the ‘Custom Structure’ option on the ‘Settings > Permalinks’ page, but the other options still include ‘index.php’ (see attached screenshot).

I forgot to mention that the snippet needs to be above the /* That's all, stop editing! Happy blogging. */ line in wp-config.php?

If the snippet is already above that line we’ll have to do some more digging.

1 Like

Clay, that did it! Moving the snippet above the /* That's all, stop editing! Happy blogging. */ line resulted in ‘index.php’ being removed from all permalinks. My apologies if you mentioned that step previously and I overlooked it. Thanks for working with me through several steps to get to the solution!

1 Like