Hey,
I'm starting programming on a new project soon, but there's this one kink I want to work out before I write any code. For all intents and purposes, I'm starting a free web hosting site. So a user has his website at freehost.com/sitename. But then he buys an upgrade where he can have his own domain, sitename.com. It is possible for me to own the domain.
What is the best way to redirect sitename.com to freehost.com/sitename? That also means that sitename.com/subfolder will redirect to freehost.com/sitename/subfolder.
I've read that mod_rewrite will be involved, but I haven't really found any clear guides addressing this issue specifically. Also, will things get messy if freehost.com/sitename is not an actual directory, but rather a CakePHP URL?
Thanks.
I'm starting programming on a new project soon, but there's this one kink I want to work out before I write any code. For all intents and purposes, I'm starting a free web hosting site. So a user has his website at freehost.com/sitename. But then he buys an upgrade where he can have his own domain, sitename.com. It is possible for me to own the domain.
What is the best way to redirect sitename.com to freehost.com/sitename? That also means that sitename.com/subfolder will redirect to freehost.com/sitename/subfolder.
I've read that mod_rewrite will be involved, but I haven't really found any clear guides addressing this issue specifically. Also, will things get messy if freehost.com/sitename is not an actual directory, but rather a CakePHP URL?
Thanks.