1. Home
  2. Knowledge Base
  3. cPanel
  4. Settings
  5. Steps to redirect all the sites hosted under my cPanel to new my website www.example.com

Steps to redirect all the sites hosted under my cPanel to new my website www.example.com

Step 1: Login to your cPanel account.
Step 2: Go to Document Roor folder [/home/usernmae/public_html]
Step 3: Click File option to create a new file.
Step 4: In the New File name field, enter the filename as a .htaccess.
Step 5: Copy and paste the below code to .htaccess.
+++
 Redirect 301 / https://www.example.com/
+++
Step 6: Finally, click Save changes option.

Related Articles