Skip to main content

Posts

Showing posts with the label htaccess redirection

How make redirection by .htaccess file

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support. Instructions 1. Create an empty text file using a text editor such as notepad, and save it as htaccess.txt. NOTE: The reason you should save the file as htaccess.txt is because many operating systems and FTP applications are unable to read or view .htaccess files by default. Once uploaded to the server you can rename the file to .htaccess. 2. Edit the contents of the file. Check the following examples: 301 (Permanent) Redirect: Point an entire site to a different URL on a permanent basis. This is the most common type of redirect and is useful in most situations. In this example, we are redirecting to the "mt-example.com" domain: # This allows you to redirect your entire website to any other domain Redirect 301 / http://mt-example.com/ ...