How to Redirect Website to a New Directory Using .htaccess

How to Redirect Website to a New Directory 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 redirect your website to a new directory.
Redirect /index.html https://domain.com/newdirectory/

Change domain.com to your destination domain and /newdirectory/ to the name of your directory.

Please rate this article to help us improve our Knowledge Base.

0 0