Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

How to use a subdomain in the same SS install




6 May 2010 at 2:54am (Last edited: 6 May 2010 2:58am), Community Member, 8 Posts

Hi there,

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

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

I can already access this controller by accessing 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 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!