Jump to content

Cre8asiteforums Internet Marketing
and Conversion Web Design


Photo

Search And Replace Urls In Wordpress


  • Please log in to reply
17 replies to this topic

#1 cre8pc

cre8pc

    Dream Catcher Forums Founder

  • Admin - Top Level
  • 14692 posts

Posted 20 September 2016 - 09:56 PM

How do I search a WordPress site to find and replace URL's?

 

Ex. Find all http links and replace with https if resolving to one's own server and replacing any outbound absolute links with https where appropriate.



#2 glyn

glyn

    Sonic Boom Member

  • Hall Of Fame
  • 3227 posts

Posted 21 September 2016 - 06:32 AM

Velvet blue urls plugin

#3 cre8pc

cre8pc

    Dream Catcher Forums Founder

  • Admin - Top Level
  • 14692 posts

Posted 21 September 2016 - 09:51 AM

Thank you!  Installed and running it now  :infinite-banana:  :infinite-banana:



#4 jonbey

jonbey

    Eyes Like Hawk Moderator

  • Moderators
  • 4752 posts

Posted 21 September 2016 - 09:55 AM

if the other links are broken, then Broken Link Checker. 

 

There are also other tools to do search and replace in posts etc.

e.g. 

https://en-gb.wordpr...ch-and-replace/



#5 bobbb

bobbb

    Sonic Boom Member

  • Hall Of Fame
  • 3319 posts

Posted 21 September 2016 - 10:30 AM

Bad link checker: Costs $0.00 USD

http://home.snafu.de...n/xenulink.html

 

Run it on your site. It will hammer it. You can set concurrent request to 1. At the end you get a report of links, internal and external, which you can sort and check.



#6 jonbey

jonbey

    Eyes Like Hawk Moderator

  • Moderators
  • 4752 posts

Posted 21 September 2016 - 01:47 PM

Broken Link Checker - much better. Runs behind the scenes all the times, can email you when a link breaks, even checks "broken" links that are not linked (plain text URLS, etc), reports redirects, with option to fix the redirect, gives you the option to link to the web archive when a site disappears, and is also totally free! Does Xeno send you an email when a newly broken link is discovered? 



#7 bobbb

bobbb

    Sonic Boom Member

  • Hall Of Fame
  • 3319 posts

Posted 22 September 2016 - 09:44 AM

No it runs on your machine. You run it when you decide you want to to run it.

 

I presume you mean the WP plugin.



#8 jonbey

jonbey

    Eyes Like Hawk Moderator

  • Moderators
  • 4752 posts

Posted 22 September 2016 - 06:33 PM

That's my point. You have to run Xenu. Better to have something that constantly monitors, reports and suggestions solutions.



#9 bobbb

bobbb

    Sonic Boom Member

  • Hall Of Fame
  • 3319 posts

Posted 23 September 2016 - 09:59 AM

disagree



#10 Pete

Pete

    Light Speed Member

  • 500 Posts Club
  • 539 posts

Posted 16 October 2016 - 09:59 AM

Bit late to the party here, but I assume this is due to installing an SSL certificate.

 

In this case broken link checker won't be the thing because the http links won't be seen as broken.

 

Apart from what is in the pages and post content, there could be quite a few URLs hidden from a normal search/replace (e.g. in text widgets, custom menu items, older versions of pages etc)

 

I found that this was useful as it will search replace the actual database. (use with care, backup and then backup again first)

 

https://interconnect...ress-databases/

 

Note that doing a text file search and replace on a downloaded database is not a good idea, can cause all kinds of issues, but this script does a very nice job.



#11 glyn

glyn

    Sonic Boom Member

  • Hall Of Fame
  • 3227 posts

Posted 17 October 2016 - 01:53 PM

Velvet blue urls plugin does all this ;)

#12 cre8pc

cre8pc

    Dream Catcher Forums Founder

  • Admin - Top Level
  • 14692 posts

Posted 18 October 2016 - 11:26 AM

Bit late to the party here, but I assume this is due to installing an SSL certificate.

 

 

You got it. And the site is quite large. I haven't gone in yet to do this yet, as the site owner is not sure now if they are even keeping the site up.  <_<



#13 Pete

Pete

    Light Speed Member

  • 500 Posts Club
  • 539 posts

Posted 18 October 2016 - 11:33 AM

Velvet blue urls plugin does all this ;)

 

What, it finds links in widgets now? Have they changed it in the last month?

 

https://wordpress.or...ortant-feature/



#14 cre8pc

cre8pc

    Dream Catcher Forums Founder

  • Admin - Top Level
  • 14692 posts

Posted 19 October 2016 - 03:41 PM

Velvet URLS worked beautifully and fast.  My site is done. I'm working down my list of sites to do.  This one https://policeandsecuritynews.com/is funky. The info icon appears but if you click around and then return to the homepage, the locked icon shows up.  The theme is widget-heavy. 

 

How do I troubleshoot to see what's messing it up from being all clear?



#15 Pete

Pete

    Light Speed Member

  • 500 Posts Club
  • 539 posts

Posted 19 October 2016 - 03:46 PM

I don't know how to do it globally but inspect elements in Chrome or other browsers will tell you on a page by page basis

Or a search for <img src="http://

Edited by Pete, 19 October 2016 - 03:49 PM.


#16 iamlost

iamlost

    The Wind Master

  • Site Administrators
  • 5397 posts

Posted 19 October 2016 - 04:32 PM

It's the ads. Some are served via HTTPS and some are not. This is the most common point of 'failure', always the first thing to check.

#17 Pete

Pete

    Light Speed Member

  • 500 Posts Club
  • 539 posts

Posted 20 October 2016 - 04:33 AM

It's the ads. Some are served via HTTPS and some are not. This is the most common point of 'failure', always the first thing to check.

 

I didn't know that. Does it happen even if you have changed your adsense code to include https:// or use   src="//pagead2.googlesyndication..../



#18 Pete

Pete

    Light Speed Member

  • 500 Posts Club
  • 539 posts

Posted 07 December 2016 - 08:25 AM

Just been using Velvet Blues on a few sites.

 

It is very very good (worth donating IMO), but it does miss some links in widgets, sliders, etc. so check all those other places.





RSS Feed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users