Categories: WORDPRESS

How do I change website from http to www

You can follow these 2 Methods for redirect wordpress website from http to www

Method: 1 For Any Website

Step: 1 Go to Cpanel and Click on setting

Step: 2 Now enable Checkbox of hidden files

Step: 3 Refresh your Cpanel and go inside public_html here you see .htcess files you jst replace all available code to below code

 

                            RewriteEngine On

                           RewriteCond %{HTTP_HOST} !^www\. [NC]

                           RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

Step: 4   If you don’t have .htaccess files then create a file name with  .htaccess

        and paste above code and save them

 

Step: 3 Now Refresh Your Website.

                  That’ It.

 

Method: 2 For Any WordPress Website

Step: 1  Go to Settting

Step: 2  General Setting Here You see

             WordPress Address (URL) and Site Address (URL) change http:// to http://www and update                       them

Step: 3 Now Refresh Your Website.

                  That’ It.

Basant Mallick

Basant

Recent Posts

How to make dependent dropdown of state and district using cakephp2 form?

Creating dependent dropdowns in CakePHP 2 involves using AJAX to dynamically load data into the…

11 months ago

How to make id as auto increment in postgrey SQL?

just add below code in column properties id Default input Method: 1nextval('form_submissions_id_seq'::regclass) Method: 2 Via…

11 months ago

How to Add Auto Increment to a Column in PostgreSQL ?

Learn how to efficiently set up auto-increment columns in PostgreSQL with this step-by-step guide. From…

12 months ago