I have a web directory that can be accessed via either http://www.example.com/abc or http://abc.example.com. Same physical directory, same contents, just different addresses.
I want to redirect to abc.example.com if it is accessed via www.example.com/abc. Can I do it by a simple PHP script?
The index.php
will be the contents for either address anyway.