Quantcast
Channel: PlanetDomain Support » Web Hosting
Viewing all articles
Browse latest Browse all 10

301 Redirection with .htaccess

$
0
0

To create a .htaccess file with 301 redirection, connect via FTP to your hosting service and perform the following steps:

  1. Open a new file using a standard plain text editor (such as Microsoft® Notepad).
  2. In the text editor, type: Redirect 301 </pagename.html> http://<target web address>.
  3. Save this file as .htaccess. Ensure the default .txt extension is removed.
  4. Upload this file to the root directory of the hosting server via FTP and test it.

Where:

  • </pagename.html> = is the file to be opened at the target URL.
  • <target domain name> = is the URL to which the page is to be redirected.

Example:

  • Redirect 301 /index.html http://www.planetdomain.com.

Viewing all articles
Browse latest Browse all 10

Trending Articles