Im reorganising my web diretory because it's become messy. I've changed the structure of things so that folders below root are now subdomains e.g. http://domain.com/forums
will now be at http://forums.domain.com
What I want to do is put a .htaccess redirect in place so that requests for the forums diretcory get routed to the subdomain. However the answers I've found on Google aren't working.
The new directory structure is like this :
The domain is setup so that the directory "Main" is its root and that works fine. The problem is that trying to goto /forums 404s because the directory doesn't exist.
Ideally I would like to have any request for a directory below root to be redirected to the subdomain directory automatically so I can add subdomain directories and they will automatically work if the directory exists.