Solved

htaccess help please

Posted on 2015-02-22
4
48 Views
Last Modified: 2015-03-03
Hi Experts

I recently registered a couple of domains and transferred and existing domain to a new host. As I havent modded an htaccess file for years here I am asking for help.

Ok the basic story is I have domain1.com domain2.com domain3.com, domains 1 & 2 are new and the 3rd is transferred, I have one lot of hosting, so having to use multiple folders for the 2 sites I host. The hosting package is 'bound' to domain 1 and I can redirect domain 2 (domains 1 and 2 are the same business) and that works great as its the same domain name with a .co.nz and a .kiwi on the other

But what I have had to do to get it to work is have www.domain3.com redirecting to www.domain1.com/site2/index.html what what I want to present is either www.domain3.com or domain3.com/index.html

Ive googled a lot but can't find anything for my specific situation, can anyone help me with the code for the .htaccess file ?

Thanks
0
Comment
Question by:franklintech
  • 3
4 Comments
 
LVL 11

Expert Comment

by:RedLondon
ID: 40625143
You tagged this 'cpanel' but don't mention cPanel in your question.  Are you managing your hosting with an actual cPanel-based hosting account?
0
 

Author Comment

by:franklintech
ID: 40625151
Yes, cpanel based, have access to the .htaccess file by ftp only though.
0
 

Accepted Solution

by:
franklintech earned 0 total points
ID: 40627498
Ok so I solved this myself, seems a bit of a trend here lately. Turns out what I needed was a 'transparent rewrite" covered here - http://wiki.dreamhost.com/Transparently_redirect_your_root_directory_to_a_subdirectory this lead me in the right direction..
0
 

Author Closing Comment

by:franklintech
ID: 40641580
No option other than to solve myself...
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now