Mod rewrite for fake subdomains?

Posted by Axel on Stack Overflow See other posts from Stack Overflow or by Axel
Published on 2010-03-15T03:08:00Z Indexed on 2010/03/15 3:09 UTC
Read the original article Hit count: 1147

Filed under:
|

Hello,

I really tried tons of methods but i'm not successful. I want a .Htaccess code to do the following :

I want to rename this : http://www.mydomain.com/media --> http://media.mydomain.com

So, By example instead of calling this : http://www.mydomain.com/media/XXX/picture.jpg i will call : http://media.mydomain.com/XXX/picture.jpg

Thanks

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about .htaccess