Using a page on a subdomain

I was reading the cookbook guide about serving a page on a subdomain and have a couple of questions. I have a project coming up that is a restaurant chain with multiple locations. I want to serve each location on a subdomain, but really they are all pages under the same site.

There will be a landing page as the home page that links off to the locations like domain.com/london for example but i also want to access those locations easily and directly via london.domain.com. Im assuming that all the subpages to those locations will also run under the subdomain, its not just literally that page? Im guessing thats true because the cookbook example is a blog.

Also, do i actually have to setup each subdomain on the server config?

1 Like

I think you can use a wildcard setup in Apache.

The example won’t work out of the box with subpages, see last sentence:

You might want to refine this basic example if you need to make subpages work for this page