Solved

htaccess help please

Posted on 2015-02-22
4
50 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery Sticky Menu 24 36
convert Systemjs to Webpack 3 37
Set time on Session (ASP) 14 23
Hide file extensions in Notepad++ tabs 2 11
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
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 count occurrences of each item in an array.

821 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