I am trying to set up a subdomain so that it will redirect to a specific file. EG. register.mydomain.com
should show the page at www.mydomain.com/includes/register.php
but still show register.mydomain.com
in the browser.
The site is currently set up to not show extensions in the address bar eg. www.mydomain.com/register
using the htaccess file as below and this works fine.
RewriteEngine On
RewriteRule ^register$ includes/register.php