I have a subdomain on my site.
It can be reached through subdomain.example.com
However it can also be reached through example.com/subdomain.
When the last one is used all the content is mixed up.
What I need to do is to rewrite something that whenever example.com/subdomain is accessed you automatically end up at subdomain.example.com
How can I fix this?
Never mind, found it already:
redirect 301 /subdomain/ http://subdomain.example.com/