Solved

htaccess help please

Posted on 2015-02-22
4
51 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

734 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