david Posted October 7, 2010 Share Posted October 7, 2010 I need to direct ALL traffic going to http://mydotcom.com to http://resume.mydotcom.com For example, if someone goes to http://mydotcom.com it will go to http://resume.mydotcom.com or if they go to http://mydotcom.com/test or http://hello.mydotcom.com it will go to http://resume.mydotcom.com Is there a way to do this with a htaccess file? Link to comment Share on other sites More sharing options...
0 Cupcakes Posted October 7, 2010 Share Posted October 7, 2010 RewriteEngine On Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC] RewriteRule ^ http://sub.domain.com [R=301,L] Link to comment Share on other sites More sharing options...
0 david Posted October 8, 2010 Author Share Posted October 8, 2010 RewriteEngine On Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC] RewriteRule ^ http://sub.domain.com [R=301,L] Oh wow, thanks!!! Link to comment Share on other sites More sharing options...
Question
david
I need to direct ALL traffic going to http://mydotcom.com to http://resume.mydotcom.com
For example, if someone goes to http://mydotcom.com it will go to http://resume.mydotcom.com
or if they go to http://mydotcom.com/test or http://hello.mydotcom.com it will go to http://resume.mydotcom.com
Is there a way to do this with a htaccess file?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts