How to remove an img src having -"https://example.com/img/a.jpg" to img src = img/a.jpg | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove an img src having -"https://example.com/img/a.jpg" to img src = img/a.jpg

I have a website sample that have all of its source as https and then points to the respective file. I find it little different and I am not able to change any images because of the source starting from https. Please kindly clarify and state an example so that I am able to understand. Kindly reply as soon as possible. please.

7th Jan 2018, 7:05 AM
Muthiah Abbhirami
Muthiah Abbhirami - avatar
6 Answers
+ 2
Use "find and replace" in text editor (I recommend Notepad++) and then use special symbols. Or you can write a code that works with files (for example using Python or C++), open it as text and create other file that contains only that part of an address that you need.
7th Jan 2018, 7:11 AM
Petr Leliaev
Petr Leliaev - avatar
+ 1
I can't because screenshots or video needed. If you don't know C++ or Python or other language that allows you to work with files, try to search about "Find and replace mode" in text editors.
7th Jan 2018, 7:17 AM
Petr Leliaev
Petr Leliaev - avatar
+ 1
@PetrLeliaev Sir! thank you! I understood now! have a good day!
7th Jan 2018, 7:58 AM
Muthiah Abbhirami
Muthiah Abbhirami - avatar
+ 1
@Muthiah good luck! :)
7th Jan 2018, 3:42 PM
Petr Leliaev
Petr Leliaev - avatar
0
Thanks Sir but can you kindly show me an example please.
7th Jan 2018, 7:13 AM
Muthiah Abbhirami
Muthiah Abbhirami - avatar
0
Sir, for example : figure class="slide"> <img src="http://www.himalayanacademy.com/html/home/img/heros/hero_insight/narmada-river-Insight-HinduHero.jpg" alt="Narmada Insight" /> <figcaption class="caption"> <hgroup> <h3 class="subtitle"><a href="http://www.himalayanacademy.com/view/the-benevolent-narmada-river_ei">Insights</a></h3> <h1 class="title"><a href="http://www.himalayanacademy.com/view/the-benevolent-narmada-river_ei">Narmada Insight</a></h1> </hgroup> <a class="read" href="http://www.himalayanacademy.com/view/the-benevolent-narmada-river_ei">read the article</a> </figcaption> </figure> this is the code and here I don't want IMG src to point the https instead another location. what should I do now. please help
7th Jan 2018, 7:31 AM
Muthiah Abbhirami
Muthiah Abbhirami - avatar