×

Apply the code for Exclusive off on Your Server Purchase.

How To Redirect www Or Non www Url With .Htaccess File Via cPanel?

The www and non-www URLs for your domain can be made to redirect people to each other. In the.htaccess file, a cPanel user can add a directive to redirect from www to non-www URLs or the other way around. Keep reading to know more.

STEPS :-

  1. Login to cpanel.

 

  1. Now find the “FILES” section and click on “FILE MANAGER” option.

  1. Now click on “public_html”  directory.

 

4. In the ‘public_html’ directory, right click on “.HTACCESS” file and choose the “EDIT” option.

 

  1. Now add the following lines in the .htaccess file. And save it.

( Note – Replace the domain.com, to you desired domain name )

 

Last Update: July 26, 2022  

April 8, 2022   241   jincy john    CPanel    
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Add A Knowledge Base Question !

You will get a notification email when Knowledgebase answerd/updated!

+ = Verify Human or Spambot ?

Leave a Reply

Your email address will not be published. Required fields are marked *