In this tutorial we will teach you how to create a .htaccess file so you can redirect your web site or other contents of your web site to another domain name/web site.
To use the following types of redirection you will need to create an empty text file using your favorite text editor, and save it as .htaccess and after that put the redirection type you need and save the file.
Examples of just a couple Redirection types you can use:
301 (Permanent) Redirect: This type of redirection will permanently point your entire web site to a different URL. In most cases this is the most common type of redirect and is useful in most situations. In this example, we are redirecting to the “vpsineu.com” domain:
# This allows you to redirect your entire website to any other domain Redirect 301 / http://vpsineu.com/
302 (Temporary) Redirect: This type of redirection will point your entire web site to a different temporary address. In most cases this is useful for SEO purposes when you have a temporary landing page and plan to switch back to your main landing page at a later date:
# This allows you to redirect your entire website to any other domain Redirect 302 / http://vpsineu/
You can also redirect your index.html file to a specific subfolder:
# This allows you to redirect index.html to a specific subfolder Redirect /index.html http://vpsineu.com/some_directory/