How can I rewrite a subdomain to go to a specific file in a specific folder?
Posted
by
FasterHorses
on Pro Webmasters
See other posts from Pro Webmasters
or by FasterHorses
Published on 2012-11-05T21:01:09Z
Indexed on
2012/11/12
11:22 UTC
Read the original article
Hit count: 208
I've done searching for my answer and have tested a few solutions, but nothing has worked so far.
I'm trying to get a URL like this:
to rewrite to...
http://pro.sports.com/baseball-index.php
However, I still need to keep the domain the same (http://baseball.sports.com). The reason being I have about 5 subdomains (baseball, football, soccer, etc) that I want to run off the same code base (pro.sports.com).
Everything is on the same server. I'd be happy to answer any other questions that would help me get a resolution.
I truly appreciate any direction that can be given to me to solve this.
Thanks!
--Nick
© Pro Webmasters or respective owner