3

I am trying to create two subdomain names:

  • townsville.example.com
  • brisbane.example.com

All subdomains would share the same database. They would be tied to the Pro license on example.com.

What is the best way to achieve this?

Do I have to copy index.php to each subdomain root folder?

3

If you create your folder structure like this:

craft/
public_html/
----townsville.example.com/
--------index.php
--------.htaccess
----brisbane.example.com/
--------index.php
--------.htaccess

And set the $craftPath variable in each index.php like this:

$craftPath = '../../craft';

It should do what you're looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.