• 0

HTACCESS help


Question

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.