search

How to force www on domain from Cpanel without htaccess?

Comments:
Likes:
Shares:
Best Division

Best Division  @bestdivision

Published On - Last Updated -

How to force www from Cpanel on Base Domain?

  1. Go to Cpanel Redirects.
  2. Select Type as Permanent ( 301 ).
  3. Then Select the base domain from the dropdown ( E.g: example.com )
  4. Then in redirects to put full URL ( E.g. http://www.example.com )
  5. Then in www. redirection  Do Not Redirect www.
  6. Then check the Wild Card Redirect box ( If you not check this box then http://example.com/* will not redirect too http://www.example.com/*)
  7. Then click Add

Congrats now

 http://example.com will redirect to http://www.example.com

http://example.com/anything will redirect to http://www.example.com/anything

Note: If you have SSL certificate installed then use https in Step 4.

2nd Method

You can force "www" on your domain name using the cPanel Redirects feature. Here are the steps:

Log in to your cPanel account.

Find the "Domains" section and click on "Redirects".

In the "Redirects" section, select "Permanent (301)" as the type of redirect.

In the "Source URL" field, enter your domain name without "www". For example, "example.com".

In the "Destination URL" field, enter your domain name with "www". For example, "www.example.com".

Select the option to apply the redirect to all subdomains.

Click on the "Add" button to create the redirect.

After the redirect is created, any visitors to your site using the non-www version of your domain name will be automatically redirected to the www version. This will ensure that all traffic to your site goes to a single, consistent URL.

Note: This method of forcing "www" does not require editing the .htaccess file and is a simpler way of achieving the same result.

Similar Blogs
0 Commentssort Sort By

@abcd 1 days ago

Aquí los que apoyamos a Los del limit desde sus inicios..

dislike
reply
sdfsdf