How to Permanently Redirect a Website Using .htaccess

How to Permanently Redirect a Website Using .htaccess

  • Step 1: Login to your website control panel or access a FTP client.
     
  • Step 2: Navigate to the "File Manager" or connect to your website using FTP.
     
  • Step 3: Navigate to your website's "public_html" directory.
     
  • Step 4: Edit or create the file ".htaccess"
     
  • Step 5: Enter the following code to Permanently Redirect your website.
# 301 Redirect is permanent. Change domain.com to your destination domain.
Redirect 301 / https://domain.com/
Please rate this article to help us improve our Knowledge Base.

0 0