Creating a sub domain with .htaccess

Hi

I hope someone can help me with this.

I have a website that I need to create a sub domain for which I have done - http://dev.website.com

The files for this sub domain are hosted in the main directory in a folder - /htdocs/development

I need to amend the .htaccess file to direct the site in the development folder to the http://dev.website.com domain but am unsure how to do this.

I’ve searched for a solution online but am not 100% sure what I need to do so if anyone could help or point me in the right direction it would be much appreciated.

Many Thanks

You can easily do this using mod_alias


Redirect permanent /development http://dev.example.com/

:slight_smile: