I hope this is the right place for my post… I have a Primary domain hosted at this hosting company. Now I have registered a new domain name and want to host the new site at my existing account (I asked the guys at the hosting company, it IS possible to host as many sites as I want). I’ve created a new folder in the public_html folder and uploaded the index.php file. Now when I point to the new_registered_domain_name.com, the browser automatically redirects me to my older site. According to the guys at the hosting company it is because of my .htaccess file i the public_html folder. They solved it by renaming my .htaccess file to .htaccess_old … I don’t have to tell you that it caused my old site to stop functioning properly… My question is : how can I prevent the server to redirect me from new_registered_domain_name.com to my other site but keep the .htaccess file??? Here’s my .htaccess :
It’s redirecting to your old site because these two lines (highlighted in red) are telling it to. If that’s not the behavior you want, then you can delete those lines.
I added the www prefix and now it is working but only with www.my_addon_domain.com but not for my_addon_domain.com…
I know this is a piece of cake for Apache/Server gurus but I’m NOT one…
I hate htaccess code. Finding it that is. There is usually 10 different pieces of code that does the same thing. You never know which one is the correct. Pulling answeres out of people that do know I thing or two about it is like pulling teeth. Thank god I think I have all of it I need