Forums

How to rewrite slugs into subdomains (3 posts)

  1. Ricardo
    Member
    Posted 1 year ago #

    Does anybody know how to map custom subdomains to specific URLs?

    Let's say I have a page called "My page", which has some child pages. I'd like to rewrite the URLs so they would work like this:

    mydomain.com/my-page/ --> my-page.mydomain.com
    mydomain.com/my-page/child-page/ --> my-page.mydomain.com/child-page

    Same thing goes for custom taxonomies:

    mydomain.com/taxonomy/my-taxonomy/ --> my-taxonomy.mydomain.com
    mydomain.com/taxonomy/my-taxonomy/child-taxonomy --> my-taxonomy.mydomain.com/child-taxonomy/

    I found the WP Subdomains plugin, which does exactly what I need, but it won't work in WP 3.x.

    Thanks in advance for any help you may give me.

  2. Mentores
    Member
    Posted 1 year ago #

    i have the same problem, someone knows how to fix that?

  3. VanessaMartinezX
    Member
    Posted 6 months ago #

    Could you solve your problem? If yes, could you please share the solution because I have the same things to solve.

    Greetings, Vanessa

Topic Closed

This topic has been closed to new replies.

About this Topic