I have a forum board on my main domain
http://www.example.com/support/ which I want to be redirected to a new sub domain I set up as follows:
http:/
/www.sheds-support.example.com/
I am having trouble getting the .htaccess file to redirect http://www.example.com/support/ web pages to
http:/
/www.sheds-support.example.com/ web pages
I tried loads of different configurations and none are working. At the moment I have this in my .htaccess file
RewriteEngine On
#RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com/support/ [NC]
RewriteRule ^(.*)$ http:/
/www.sheds-support.example.com$1 [L,R=301]
The frustrating thing is that I had it working OK, however, when I was working on the .htaccess file for the sub-domain I went and copied over the main .htaccess file and I had not made a backup with the latest changes in. what a plank I am.
If any one could help I would be very grateful.
Regards,
Robin
[edited by: tedster at 5:25 pm (utc) on Jan 11, 2012]
[edit reason] switch to example.com [/edit]