|
Hey guys
I run a small free file hosting for people. and in the coruse of couple of years, it has gotten pretty big, so im changing hosts.
However I have a issue.
If I change hosts then the domain will change (subdomain).
I was wondering if its possible to redirect domains.
Ok for example.
Currently, I the upload page is at.
host.test.example.com
and the files hosted there are in
host.test.example.com/files/filename.txt
Now, I want it so that when a user goes to host.test.example.com it redirects them to
host.newexample.com.
and same with files.
So, if someone tries to access, host.test.example.com/files/filename.txt
I want it redirected to
host.newexample.com/files/filename.txt
Is it possible? I'm guessing I can do this with htaccess.
Btw, I have access to both hosts.
|