avir
asked on
redirect certain certain urls to a subdomain on a different server
We are building a new site on a new server and plan to transfer our current domain name to the new site/server. Some of the pages in our current site will remain on the current server and in order to continue to access those pages we have created a subdomain, which points to the current server. Do I create 301 redirects from the new server to those pages with the new subdomain name? Even though those pages won't ever have existed on the new server?
For instance:
Currently I have www.example.com/page which will continue as subdomain.example.com/page when we make the switch over. Do I create a 301 redirect on the new server: /page -> subdomain.example.com/page ?
I don't know if it makes a difference but the new server is linux and will be hosting drupal and the old server is windows 2012.
For instance:
Currently I have www.example.com/page which will continue as subdomain.example.com/page
I don't know if it makes a difference but the new server is linux and will be hosting drupal and the old server is windows 2012.
Yes, that is exactly what you do. The new server does not need to know anything about the pages beyond the fact that they are being redirected elsewhere.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the input. I'm not a Drupal expert at all and the person who is building the site said he knows of a Drupal module that might be used, but he's not familiar with it. I guess the main question is what kind of urls the module will accept, if it will accept external urls.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.