Forum

Thread tagged as: Problem, Configuration

Site split between main site and subdomain

I've just hiot an issue with the site I'm adding Perch to that I;m unsure how to deal with.

The main site resides in the root diretory as normal but one section of the site sits on a subdomain of the main site e.g

Main site here: https://www.domain.com Sub section here: https://subdomain.domain.com

Can Perch deal with this or am I going to have to restructure the site and ditch the subdomain?

Evie Milo

Evie Milo 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You could use some rewrite rules to map subdomain.domain.com to domain.com/subdomain perhaps.

Just reading that sentence makes my brain hurt.

I think it'd be Ok to move everything the root domain to be honest now that I've looked at it again and I'd just have to put a 301 redirect thing in place to deal with the change of location for all the page links.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, great.

I don't want to over complicate things and I think having it all in one directory is better now that the site has been redesigned - makes more sense and is easier on the brain as I don't even understand your suggestion as I'm not a programmer.