Use mod_rewrite to create subdomains like URLs

You might have noticed some sites having their URLs written as if they were different subdomains of the same domain. You can do this without creating the actual subdomains, using Apache mod_rewrite.
Read this tutorial to learn how!