In some case we need to remove https or http from url. We can do it using javascript. Here is simple code

   var url = "https://techparkbd.com/";
   url = url.replace(/^https?:\/\//,'');
   console.log(url);

This output :


techparkbd.com/

If you face any problem then please inform me, I will try to help you.

Comment