Forums

Possible to have separate .htaccess file for a subsite? (5 posts)

  1. Strategerizer
    Member
    Posted 4 months ago #

    One of the subsites in my WP Network will be a new website version of an existing (static HTML) site. So I need to have redirects from their old HTML pages to the new WP pages.

    I am thinking I should keep those redirects (potentially hundred pages) in an .htaccess file just for that subsite, rather than mess around with the .htaccess of the WP network.

    Is my thinking valid? If so, how/where do I put this subsite's .htaccess? If not, what do you recommend I do instead?

    Thanks!

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Subdomain or subfolder? Or (dare I ask) mapped domains?

    Subfolder's much easier, just put the redirects in like you normally would, above the WP calls.

    Subdomain and mapped domains needs a little chicanery if you can't blanket redirect.

  3. Strategerizer
    Member
    Posted 4 months ago #

    Mapped domains; the client will need to have their subsite appear at their own company URL.

    I probably can't use rules for the redirects, rather one-by-one mapping for each of the old static .htm files to the new WP subsite path. My concern is having a hundred of those redirects in the main supersite .htaccess file. Is there a better way?

    Do you have any more specific feedback or pointers?

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    There are redirect plugins, though I don't know how they'd work with Multisite...

  5. Strategerizer
    Member
    Posted 4 months ago #

    OK, I'll investigate that; thanks.

Reply

You must log in to post.

About this Topic