.htaccess: subdomain issue

Posted by Oden on Stack Overflow See other posts from Stack Overflow or by Oden
Published on 2010-06-09T09:19:29Z Indexed on 2010/06/09 9:22 UTC
Read the original article Hit count: 200

Filed under:
|

Hey,
How can i redirect a subdomain call to a folder?

So when the site, sub.domain.com is requested I want to redirect it to show the content of domain.com/sub/

The server is configured to add every request to the domain, but i get a 404 page everytime i do a non-defined subdomain call (witch is trivial, because theres nothing defined)

So the question is:
How to solve this, with .htaccess?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite