Redirect subdomain to domain with change in path (2 posts)

  1. webaits
    Posted 1 year ago #

    I have a wordpress multisite installation with subdomains. I want to redirect one of my subdomain to domain in the following manner:

    • subdomain.domain.com => domain.com
    • subdomain.domain.com/pages => domain.com/pages
    • subdomain.domain.com/category-X/posts => domain.com/category-X/posts
    • subdomain.domain.com/category-Y/one-old-subcategory/posts => domain.com/one-new-subcategory/posts
    • subdomain.domain.com/categories/subcategories/posts => domain.com/subcategories/posts

    I couldn't find correct order and rewrite rules to achieve that. Any help would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic