There are various ways to create a responsive Drupal theme, one of them is using template_preprocess_html() function in template.php. First create template.php if your theme do not already have it.
There is a project that requires me to make the following domain redirection: Redirect all users to access the site WITHOUT the 'www.' prefix for all subdomain.Redirect all users to access the site