Page 1 of 1

Sub Domain Masking

PostPosted: Wed Jul 26, 2006 7:29 pm
by sjdennis
Is there a way to mask my sub Domain, beause right now my http://tech.ncdesigns.ca/ is forwarded to http://www.ncdesigns.ca/repairs/ and I would like it to display http://tech.ncdesigns.ca/ in the URL address bar instead of the ncdesigns.ca/repairs. Essentially it works but for astethic value I would like to avoid subfolder display.

Thanks
Sam

NCDesigns.ca - http://www.ncdesigns.ca
newjeneration design studio
Graphic Design/Web Development

PostPosted: Thu Jul 27, 2006 8:23 am
by Forumtech
Hi,

If you are having the power package and you created the subdomain in the subdomain tool, there should be a folder in your /public_html/ folder with the subdomain name (in this case I guess "tech").

Instead of setting up a redirect from \tech to \repair, simply put all your content that you want people to see in the \tech\ folder instead.

Dont forget to remove the redirection if you set it up earlier.

PostPosted: Thu Jul 27, 2006 10:51 am
by sjdennis
thankyou, got it figured out.

Much appricated. CWH Rules!

Sam

PostPosted: Sun Aug 06, 2006 11:34 am
by elrin
I actually have the same problem, but the solution above does not seem to work.

I have an addon domain (chilakonursery.com) that should show the content rooted in the directory /chilakonursery.

However, it always gets directed to my main page. Using ashemia.net/chilakonursery works fine, but that's not what I need.

Could it have something to do with my .htaccess in the public_html directory?

Code: Select all
ErrorDocument 404 http://www.ashemia.net/phpnuke
Redirect /index.html http://www.ashemia.net/phpnuke


AFAIK the above .htaccess content should not affect the addon domain in another directory. Or does it?

PostPosted: Tue Aug 08, 2006 12:00 pm
by kevin
Elrin,

It is the .htaccess file. Check it out now.

I renamed the .htaccess file to htaccess and you can now see your addon domain.

Kevin

PostPosted: Tue Aug 08, 2006 11:14 pm
by elrin
Thanks Kevin!

I was fearing that it might be the cause. I need those lines in there to direct visitors to ashemia.net to go to the phpnuke driven site.

I only have limited experience with .htaccess rules - Is there a way I can setup the .htaccess to still do the redirect for ashemia.net, but not for chilakonursery.com?

Edit: Okay - I found the solution. The subdomain also needs its own .htaccess file, that way apache does not go to the root's .htaccess file. Solved!

PostPosted: Mon Oct 02, 2006 1:45 am
by shivin
Gr8. Thanks for the update. :D

PostPosted: Mon Feb 05, 2007 9:42 pm
by Zulu
Hi, I'm having a similar issue.

I created my account as www.speculative-fiction.ca. I registered a new domain name, panfandom.ca, at another registrar, but I think I've successfully transferred it to this account.

What I would like is to have two separate sites: www.speculative-fiction.ca and www.panfandom.ca. Currently, panfandom only works as a subdomain of speculative-fiction. I tried to set up a redirect, and now panfandom.speculative-fiction.ca goes to panfandom.ca but the page won't load.

Any thoughts?