How to find all http in your website and replace them with https in cPanel?

Step::1 Login to your cPanel and open File Manager

Step::2 Next go inside public_html and create a new php file like findandreplace.php

Step::3 Once successfully created, right click over the file and choose the Edit option

Step::4 Now copy the code from the link given below

https://pastebin.com/UaGaCuS6

Step::5 Paste the code in the php file and then Click on Save changes tab.

Step::6 Now run this file in your web browser with the exact URL like https://domain.com/findandreplace.php

(Make sure you replace domain.com with your actual domain name and findandreplace.php with your original file name)
Once you hit this file, a page will appear where you can search for a keyword and replace it in whole cPanel.

Step::7 Simply replace here all http in your website with https.

In this way you can find all http and replace them with https in cPanel.

Visit our Blog for more details. You can also watch the video here.

  • How to find all http in your website and replace them with https, How to find and replace all http with https in cpanel, cpanel, http to https, change http to https
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to prevent Cross Site Scripting(XSS) injection attack in your Website?

Cross-site Scripting (XSS) is a client-side code injection attack. The attacker aims to execute...

How to protect PHP file execution in a specific directory?

Having some directories writeable by default makes your site vulnerable to hacker attacks....

How to Create backup & store them remotely in any Server using SCP?

Step::1 Login to cPanel and go to Backup Wizard in Files section.Step::2 Now click over Backup...

How to secure ‘public html’?

Permissions can be very important when it comes to hosting your website. Permissions can allow...

How to Setup file permissions of any file in cPanel?

Permissions can be very important when it comes to hosting your website. Permissions can allow...