Results 1 to 6 of 6
-
11-15-2013, 06:12 AM #1Temporarily Suspended
- 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?
-
11-15-2013, 06:22 AM #2Web Hosting Master
- 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)
-
11-15-2013, 06:32 AM #3Temporarily Suspended
- Join Date
- Oct 2013
- Posts
- 58
but i dont want that domain1.com coms in the address bar
i want domain2.com comes....
-
11-15-2013, 06:33 AM #4Web Hosting Master
- Join Date
- Dec 2007
- Location
- LocalHost
- Posts
- 1,317
█ YagHost - Fast Reliable Hosting Since 2009
█ Managed VPS - NVMe DirectAdmin
█ Web Hosting - NVMe SSD, AMD EPYC, 10 Gbps (US, Europe, Singapore)
-
11-15-2013, 06:51 AM #5Temporarily Suspended
- Join Date
- Oct 2013
- Posts
- 58
-
11-15-2013, 07:20 AM #6Temporarily Suspended
- Join Date
- Oct 2013
- Posts
- 58
up.................
Similar Threads
-
.htaccess https redirect different than http redirect
By MTO in forum Hosting Security and TechnologyReplies: 4Last Post: 05-24-2012, 05:14 AM -
Wildcard redirect addon.primary.com to addon.com
By HappyCake in forum Hosting Security and TechnologyReplies: 2Last Post: 07-23-2011, 11:16 AM -
Help with .htaccess redirect
By caffeine_man in forum Programming DiscussionReplies: 4Last Post: 04-20-2009, 09:07 PM -
addon / redirect
By r00t pAsSw0rd in forum Hosting Security and TechnologyReplies: 5Last Post: 10-18-2006, 05:29 PM -
How to prevent redirect from addon domain to subdomain?
By MH123 in forum Hosting Software and Control PanelsReplies: 0Last Post: 02-25-2004, 05:24 AM