About My Business

My photo
81 Oxford Street, LONDON W1D 2EU, United Kingdom
www.facebook.com/FanExchange

Monday 2 August 2010

Wordpress tricks and tips!



OK – so you’ve built a killer blog using Wordpress, and there’s loads of great articles and tips on there that link back to your site, driving loads of useful traffic.
And then – BLAM – one of your web developers changes your site structure, the URLs change and all of your links are broken. Aaaaargh!
OK – so you can solve it with a 301 redirect – but the best link juice comes from direct links to the correct URL – so you need to find and replace all the links in your Wordpress site.
Suprisingly, Wordpress doesn’t have a built in Find and Replace feature – so finding and reaplacing all of the links in your post is going to take aaaaaages – right?!
Wrong! All Wordpress sites use a MySQL database as their back-end. So – if you can get at that database viaphpMyAdmin (if you ask your web host they’ll tell you how), you can update all of the URLs in the whole blog (or any other text for that matter) using a simple command.
Here’s how…

How to Find and Replace all URLs in a Wordpress Blog

1. Log in to phpMyAdmin and select your Wordpress blog’s database from the drop-down:
wordpress find and replace links
2. Now pick the SQL tab from the top of the screen:
wordpress find and replace links
3. You’ll now see a big empty box where you can add SQL commands. Carefully copy and paste the command below in to the box, and replace http://oldurl.com and  http://oldurl.com with the actual links you want to find and replace
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘http://oldurl.com’, ‘http://newurl.com’);
Wordpress Find Replace Links
4. Now just hit the “Go” button to run the command, and hey-presto – you’ve replaced all of the links in your whole Wordpress blog with the correct URL – that’s just saved you about an hour of trudging through all your posts one by one!!
Don’t forget to check out our Wordpress Training Courses if you want to get to grips fully with Wordpress.

Similar posts you may like

  1. Wordpress SEO – 10 top tips
  2. How Do I Get Links to My Site? Use Your Social Media Linkerati – A 3 Step Guide
  3. Joomla vs Wordpress comparison
  4. Writing a Wordpress Blog Post: 8 Top Tips
  5. Advanced Wordpress Training for Custom Themes Now Available

Tags


Enhanced by Zemanta

No comments:

Post a Comment