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

AWS

Steps: AWS puttyubuntu sudo su apt update apt install apache2 service apache2 start service apache2…

2 days ago

How to Center submit button of wpForm

You must navigate to Settings » General first. Add wpf-center to the Form CSS Class…

8 months ago

How to add Marquee on any website wordpress,PHP,HTML,eBlogger ?

if you want to add marquee on any website (wordpress,PHP,HTML,Blogger). you just need to follow…

8 months ago

How to Autoplay and Loop YouTube Videos in WordPress

First Method: Use below code to play youtube video in loop and most important is…

1 year ago