Support » Fixing WordPress » How to redirect permalinks after structure change

  • Thea

    (@dorothy1508)


    I’ve changed my domain to a directory and I need to redirect my permalinks.

    This method from Yoast seemed to work perfectly, pasted into my .htaccess file:

    How to change your WordPress permalink structure

    But then I realized a HUGE snag: I have sub-domains which don’t need this redirect, and the code is applying to them too, resulting in a pile of 404 errors.

    How can I modify this code so it applies to the main domain only?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to redirect permalinks after structure change’ is closed to new replies.