I have few questions regarding subdomains in my mind. I know how to get a subdomain and redirect to it using .htaccess
or placing js file in our directory.
My questions are:
- Suppose I have a website
www.mysite.com
and I want to redirect mobile users tom.mysite.com
. Can I placejs
file with redirecting code anywhere in the directory or should it be in specific path? - I want different functioning and styling for mobile users for which I have to write a separate code. Where will I place this mobile friendly code and link it to redirecting code? I don't want to use any app or web service for this.