I would like to know the method of setting up sub-domains in the development environment. Don’t have any hosting account yet. But would like to test it up internally by simulating a similar setup that would be provided by the hosting company later on.
Thanks!
Open the
C:\Windows\System32\Drivers\etc\hostsfile in Notepad (make sure you run Notepad as an Administrator) and add a bunch of entries like this:Save the file and load up your application using each test domain e.g. http://test1.local/ (or if you’re using the VS development server, include the port number). You can use any names you want if you don’t like my style 🙂