Search code examples
.htaccessdnsdomain-name

Domain name customisation? htaccess?


I have my personal website that I am developing so I can showcase my code, photography and digital art and also blogs to the public.

Currently my site structure is :

www.mysite.co.uk/sub-folder

e.g.

www.mysite.co.uk/blog

However I would like to make my site domain structure like what I have seen on some sites:

www.blog.mysite.co.uk

or

www.code.mysite.co.uk

What is this technique called?

How is it achieved? htaccess mod?

Any links or resources please could you send me them.

Thanks


Solution

  • www.mysite.co.uk/sub-domain istn't called "Sub Domain". Its only a sub folder.

    This "blog.mysite.co.uk" are subdomains. You must configure them in your Apache Server configuration: http://edwardawebb.com/apache/create-subdomains-apache-easy