Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2013
    Posts
    58

    redirect two addon domains by htaccess

    hi
    i have two addon domains
    for example:
    domain1.com
    domain2.com

    each of them have a folder in cpanel file manager
    so want to redirect domain2.com to domain1.com
    please help me how can i do this?

  2. #2
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    To redirect entire domain2.com to domain1.com, add following code in .htaccess file of domain2.com folder.
    Code:
    Redirect 301 / http://domain1.com/
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  3. #3
    Join Date
    Oct 2013
    Posts
    58
    but i dont want that domain1.com coms in the address bar
    i want domain2.com comes....

  4. #4
    Join Date
    Dec 2007
    Location
    LocalHost
    Posts
    1,317
    Quote Originally Posted by HadishWeb View Post
    but i dont want that domain1.com coms in the address bar
    i want domain2.com comes....
    Use domain2.com as parked domain name in cPanel account of domain1.com
    YagHost - Fast Reliable Hosting Since 2009
    Managed VPS - NVMe DirectAdmin
    Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)

  5. #5
    Join Date
    Oct 2013
    Posts
    58
    Quote Originally Posted by ravi_9793 View Post
    Use domain2.com as parked domain name in cPanel account of domain1.com
    no it also shows domain1.com in addressbar !!!

  6. #6
    Join Date
    Oct 2013
    Posts
    58
    up.................

Similar Threads

  1. .htaccess https redirect different than http redirect
    By MTO in forum Hosting Security and Technology
    Replies: 4
    Last Post: 05-24-2012, 05:14 AM
  2. Wildcard redirect addon.primary.com to addon.com
    By HappyCake in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-23-2011, 11:16 AM
  3. Help with .htaccess redirect
    By caffeine_man in forum Programming Discussion
    Replies: 4
    Last Post: 04-20-2009, 09:07 PM
  4. addon / redirect
    By r00t pAsSw0rd in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-18-2006, 05:29 PM
  5. How to prevent redirect from addon domain to subdomain?
    By MH123 in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 02-25-2004, 05:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •