Migrate WordPress posts to new domain

Reading Time: < 1 minute

You have migrated your WordPress site to a new domain but want all posts to be redirected to the same post on the new domain. So if someone accesses myoldsite.com/blog/sample-post you would like them redirected to mynewsite.com/blog/sample-post


On your old domain, locate your .htaccess file using a FTP program such as filezilla

Add the below to the file and save

Replace the domain names as required:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]

For example:

If your old domain is myoldsite.com

and new site is mynewsite.com, the code should look like:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^myoldsite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.myoldsite\.com$
RewriteRule (.*)$ http://www.mynewsite/$1 [R=301,L]


Redirect all WordPress posts to new domain

Reading Time: < 1 minute

You have migrated your WordPress site including all posts/database to a new domain and would like all URL’s redirecting to the new domain. This can be useful if a visitor locates one of your posts via a search engine and redirects to the same post on the new domain, rather than the homepage of the new site.

For example, when you visit the old post: http://oldsite.com/12/1/30/a-blog-post

You would like visitors redirected to the corresponding post at the new domain: http://newsite.com/12/1/30/a-blog-post

One of the ways you could do this is to amend the .htaccess file on your old wordpress site.

Take a backup of the old site and database

Remove all content from your old .htaccess file and replace with the below:

RewriteEngine on

RedirectMatch 301 /(.*) http://www.newdomain.com$1

All traffic including blog posts should redirect to the correct place on the new website.

If your new blog is not located on the root of the new doamin, for example, it’s now located on newdomain.com/blog, add /blog to the end so it reads http://www.newdomain.com/blog$

Blogroll links homepage only

Reading Time: < 1 minute

If you want to setup your wordpress site so blogroll links appear on the homepage only, here’s how.

1) Login to your Word press blog admin area
2) Click Appearance
3) Click Editor
4) Click Sidebar located on the right
5) Locate the below code or similar

<?php get_links(‘-1’, ‘<li>’, ‘</li>’, ”, FALSE, ‘id’, FALSE,
FALSE, -1, FALSE); ?>

6) Replace with the below code:

<?php if(is_home()){ get_links_list(); } ?>


Free Tech word press theme

Reading Time: < 1 minute

The GadgetPlus theme is a free WordPress theme with Option/Admin Panel, featured posts and post thumbnail images. Suitable for any niche, especially for tech blogs. Theme Categories: 2-columns, right sidebar, widget ready, admin/option panel, ads ready, tech blog. If you are after a new theme for your technology or webmaster related word press blog, download this theme for FREE!

Demo      Download

For support on this theme – visit the support forum