Hi gang 
At the moment, I have a rule in place that will redirect anyone who goes to http://mydomain.com to http://mydomain.com/forum. It looks like this.
However, eventually when I have content for the index page, this will be removed and there will be a link to the forum. I've been playing about with using VirtualHost stuff in Apache so that I can have subdomains (wiki.mydomain.com, forum.mydomain.com, bugs.mydomain.com etc.) and was wondering how I would go about creating a redirect rule that would send people straight from mydomain.com to forum.mydomain.com as a temporary thing.
Anyone got any ideas? I tried the following but it didn't work >.>
Any help is appreciated.
Thanks,
Joel.

At the moment, I have a rule in place that will redirect anyone who goes to http://mydomain.com to http://mydomain.com/forum. It looks like this.
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/ [NC]
RewriteRule ^$ /forum/ [R,L]
However, eventually when I have content for the index page, this will be removed and there will be a link to the forum. I've been playing about with using VirtualHost stuff in Apache so that I can have subdomains (wiki.mydomain.com, forum.mydomain.com, bugs.mydomain.com etc.) and was wondering how I would go about creating a redirect rule that would send people straight from mydomain.com to forum.mydomain.com as a temporary thing.
Anyone got any ideas? I tried the following but it didn't work >.>
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/ [NC]
RewriteRule (.*) http://forum.mydomain.com/$1 [R,L]
Any help is appreciated.
Thanks,
Joel.