Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    9

    Default Redirect www, but keep email hosted

    I have two accounts created in WHM, domain1.com and domain2.com. Both were serving a web pages and email.

    I need to have all www traffic from domain1 to go to domain2, but allow domain1 to still use email and cpanel functionallity.

    I think i can just park it on top, but i would have to recreate/migrate all the emails and passwords which i dont have access to.

    Is there a way i can just config the dns reroute the www traffic?

  2. #2
    Member MaestriaNick's Avatar
    Join Date
    Aug 2008
    Posts
    137

    Default

    You may need to setup rewrite rules in htaccess for domain1.com to redirect all request to domain2.com. Also you can setup redirects from Cpanel.

    Maestriatech.com
    If Someone can do it, We can do it better.
    24/7 Linux /Windows Server Support
    5+ years in the industry
    reachus@maestriatech.com

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by stevebor1 View Post
    I have two accounts created in WHM, domain1.com and domain2.com. Both were serving a web pages and email.

    I need to have all www traffic from domain1 to go to domain2, but allow domain1 to still use email and cpanel functionallity.

    I think i can just park it on top, but i would have to recreate/migrate all the emails and passwords which i dont have access to.

    Is there a way i can just config the dns reroute the www traffic?
    Quote Originally Posted by MaestriaNick View Post
    You may need to setup rewrite rules in htaccess for domain1.com to redirect all request to domain2.com. Also you can setup redirects from Cpanel.
    What MaestriaNick has suggested should work without issue; I believe it is easiest to simply setup a redirect via cPanel as that will accomplish the desired task of redirecting HTTP traffic to a specific destination (via mod_rewrite entries in the applicable .htaccess file).

    Redirects may be setup via cPanel at the following menu path, (with linked documentation):
    cPanel: Main >> Domains >> Redirects

  4. #4
    Member
    Join Date
    Jan 2004
    Posts
    9

    Default

    I went ahead and just used the "redirect' from within cpanel. www gets redirected, but mail is still being handled correctly. Thanks.

Similar Threads & Tags
Similar threads

  1. Canonical redirect of www to non www for the same domain
    By Vince778 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-24-2011, 02:22 AM
  2. 302 Redirect of www to non www for the same domain
    By Vince778 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-22-2011, 07:01 PM
  3. Can a cpanel account have www hosted externaly
    By luka83 in forum Migrate to cPanel
    Replies: 1
    Last Post: 06-23-2011, 02:20 PM
  4. Redirect without www to www
    By aaronpie in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-13-2009, 11:40 AM
  5. How do you redirect non-www to www prefixed domains??
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-09-2008, 09:51 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube