Re: How to redirect the non-www address to the www
Posted: Thu Jan 05, 2012 8:32 pm
Hi guys.
I think I have a complicated problem.
here is a scenario:
I have one hosting account on Godaddy.com and two domains ( one is .com and another is .net).
I have assigned the root folder to my .com domain and it is obviously joomla.
My second domain (.net) is a simple HTML website that I have placed it on a new folder in the root(sub folder).
www.example.com = for my .com joomla website
www.example.net = Placed on a new folder on same host ( folder name is example1)
Case: I have redirected my .com from non-www to www using htaccess file and it works great.
The PROBLEM is when visitors clicking on my .net website then it redirects them to the .com and it shows the root folder not my .net domain name?!!!!( www.example.com/example1)
I have removed the redirect www and then I can see my .net domain name again.(www.example.com)
So, somehow these commands conflicted on my .net and .com domains and when I turned on redirect www then I will loose my .net URL and vice versa.
Would you please let me know how I can use www redirect for my .com and also have my example.net in the same time?
Regards
Al
I think I have a complicated problem.
here is a scenario:
I have one hosting account on Godaddy.com and two domains ( one is .com and another is .net).
I have assigned the root folder to my .com domain and it is obviously joomla.
My second domain (.net) is a simple HTML website that I have placed it on a new folder in the root(sub folder).
www.example.com = for my .com joomla website
www.example.net = Placed on a new folder on same host ( folder name is example1)
Case: I have redirected my .com from non-www to www using htaccess file and it works great.
The PROBLEM is when visitors clicking on my .net website then it redirects them to the .com and it shows the root folder not my .net domain name?!!!!( www.example.com/example1)
I have removed the redirect www and then I can see my .net domain name again.(www.example.com)
So, somehow these commands conflicted on my .net and .com domains and when I turned on redirect www then I will loose my .net URL and vice versa.
Would you please let me know how I can use www redirect for my .com and also have my example.net in the same time?
Regards
Al