Any recommendations or best practices for mapping a subdomain to a WordPress page:
http://my-page.mydomain.com -> http://mydomain.com/my-page
I don’t want to do a redirect either, just keep the original subdomain URL until a different link is click, and then the subdomain is removed.
I’m using Apache 2 with mod_rewrite, wordpress 2.7 with pretty-urls, and php 5.
As already mentioned I would use mod_rewrite to get this done. Something like the following should work in the my-page.mydomain.com virtual host
This will require you to enable mod_proxy. Please read the security implications of doing this on the Apache website http://httpd.apache.org/docs/2.2/mod/mod_proxy.html