Create a file called robots.txt in the doc root (web / httpdocs / www folder) and put in the code below
Block all crawlers from a specific file / folder
Domain
Block specific crawlers from all content
Old Directory
New Directory
How it Works
The code generated is used to create SEO friendly permanent redirects.
Your website needs to be running on an Apache server with htaccess support enabled for these apache redirects to work. Please contact your hosting company in case the redirect code listed here does not work for you.
Refer to the 301 redirect tutorial for other methods on how to redirect a webpage.