Jump to:

4935 Posts in 16066 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » How to use a subdomain in the same SS install

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 784 Views
  • nicktacular
    Community Member
    8 Posts

    How to use a subdomain in the same SS install Link to this post

    Hi there,

    Currently I have a SS installation for a domain, example.com in a directory /mywebroot.

    What I am trying to do is to create a subdomain such as customapi.example.com which will use a a particular controller such as /mywebroot/custom/code/MyCustom.php.

    I can already access this controller by accessing example.com/customabc because I defined the routes in my /mywebroot/custom/_config.php. However, I wish to have this controller accessible from the root of the subdomain customapi.example.com so that it runs the controller called MyCustom_Controller inside /mywebroot/custom/code/MyCustom.php as the default controller.

    Is this possible? If so, is this something to address inside /mywebroot/.htaccess, or is this a module, or....?

    I would appreciate any pointers!



Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.