I need to insert only a HTTP in a list of links (10,000) that doesn’t have one, for exemple
<a href="nunm-press.com">
From
<a href="nunm-press.com"
to
<a href="http://nunm-press.com"
Suggestions?
I search for "str_replace replace only if doesn’t exist", found nothing.
2
Answers
I dont exactly understand your question but if you are using php and you want to set http or https you can try this.
you can use str_replace function