.htaccessmod-rewritehttp-redirectcoldfusiondomain-mask

re-direct / re-write my domain


First, I have already spent the past few hours trying to find a solution for this, but have had nothing but non-working solutions :(

It's pretty simple - I'm pointing the DNS of a new domain to my current hosting, but when I visit the new domain, I'm just viewing my original site (the one i got with my hosting).

Let's say my original site is "www.originalsite.com" - the content for my new domain is at "www.originalsite.com/newsite.com/" (dots included).

Now I just need to get "www.newsite.com" to re-direct to it's own directory AND re-write itself to hide the directory name.

So yeah, "www.newsite.com" needs to use the content in "www.originalsite.com/newsite.com/", but remain displayed as "www.newsite.com" in the URL bar.

Cheers for any input - really appreciated :)

PS: I'm using ColdFusion and previously made a useful re-direction, but the result was typically "www.netsite.com/newsite.com/" - which is not what I want :)

Oh...and yeah, I'm hoping for an .htaccess fix :) thanks!


Solution

  • CrystalTech have just recentely installed a mod that provides htaccess ...

    Though they've only done it one server so far :) so I'm being moved onto that server.

    Problem solved I guess - heh!

    PS thanks for the help anyway guys :)