Subdirectory that points to a subdomain

Hi all:

Is it possible that when a user visits http://domain.com/something/ he really is seeing http://something.domain.com ?

dns ?apache? htaccess?

thanks a lot!

3 Replies

This seems to be sort of what you are looking for: http://www.guruofsearch.com/redirect-fo … -subdomain">http://www.guruofsearch.com/redirect-folder-to-subdomain

So if a user visits http://domain.com/stuff/ he is acutally watching http://stuff.domain.com without showing that he is on the subdomain.

@thmo:

This seems to be sort of what you are looking for: http://www.guruofsearch.com/redirect-fo … -subdomain">http://www.guruofsearch.com/redirect-folder-to-subdomain

thanks a lot thmo.

It's all I wanted.

Oh no, another poor soul spoiled by cPanel… :P

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct