Create subdomains through cPanel or DirectAdmin is quite easy, but
what if you want to create subdomains on localhost or local computer?
Here’s a guide to make a subdomain on localhost using WAMP.
1. Open the file called ‘hosts’ in the directory C:\Windows\System32\drivers\etc\ using any text editor. Add a new line with subdomain you want to ceate (for example: subdomain.localhost), so that it becomes like the example below.
Here’s a guide to make a subdomain on localhost using WAMP.
1. Open the file called ‘hosts’ in the directory C:\Windows\System32\drivers\etc\ using any text editor. Add a new line with subdomain you want to ceate (for example: subdomain.localhost), so that it becomes like the example below.