Forum Moderators: phranque

Message Too Old, No Replies

want http://subdomain.example.com

but http://example.com/subdomain should be different

         

alkuma

8:31 pm on May 19, 2006 (gmt 0)

10+ Year Member



I'm trying to implement subdomains on my website and there are some problems.

I need [subdomain.example.com...] to be a separate site from http://example.com/subdomain .

What I did:

created subdomain directory under /www
created subdomain directory under /

Now I have two files /www/subdomain/index.html
and /subdomain/index.html

I expect [subdomain.example.com...] now to display a page different from http://example.com/subdomain/index.html - but it always picks up the latter.

Why is this so? I know other sites are able to do this so is there some other setup involved.

Redirection from subdomain.example.com to example.com/subdomain is OFF.

jdMorgan

8:39 pm on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer depends on the code that you wrote (or that your control panel generated) to associate the subdoamin with the subdirectory. Also, if you wrote code to canonicalize your domain (redirect www- to non-www or vice-versa, for example), or if you used your control panel to 'alias' one to the other, that may enter into it.

Jim

alkuma

3:23 am on May 20, 2006 (gmt 0)

10+ Year Member



I didn't handwrite any code - so it must be in the .htaccess file? Will check that, thanks for the tip.