LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » WordPress / WordPress Tips » Migrated From Blogger? Then Here Is Best .htaccess File For WordPress

Migrated From Blogger? Then Here Is Best .htaccess File For WordPress

Migrated-From-Blogger-Then-Here-Is-Best-htaccess-File-For-WordPress
Blogger to WordPress migration is not soo easy as you think but if you will go for plugins then it can make it little easy but will make your new WordPress blog soo heavy and less secure. Also it can damage your blog badly but there are many changes that you have to do with or without plugin.

Don’t worry, here we will make all easy and even without plugin. You have experienced after migrating that your visitors is start getting 404 errors as WordPress links are totally different. You also have many 404 errors in your Google WebMaster Account so now the question is how to fix them to make all links perfect.

For that you have to do many things that we described earlier in or old posts likes Blogger Permalink Importer: Import All Blogger Posts Permalinks, How To Add .html In WordPress Posts Permalink?How To Add .html In WordPress Page Permalink?, How To Make WordPress Pages Permalink As Blogger Pages Permalink? and How To Make WordPress Posts Permalink As Blogger Posts Permalink? Here we are with another one that you must have to follow.

We shared all the codes earlier one by one but now to make it more easy for you, here we are collecting them all but first you can view them one by one also.

Table of Contents

1.) Remove “?m=1″ And “?m=0″ From WordPress Posts URL:

Blogger have “?m=1″ And “?m=0″ in their URLs but in WordPress, there are no “?m=1″ And “?m=0″ in URLs so we shared an article previously about How To Remove “?m=1″ And “?m=0″ From WordPress Posts URL? You can read more there about it.

2.) Redirect Blogger Label URL To WordPress Category URL:

Blogger have labels that URLs are different and WordPress have categories that URL are also different but using Blogger Importer PLugin, you imported all labels in WordPress categories but not there URL so here we shared an article about How To Redirect Blogger Label URL To WordPress Category URL? You can read more there about it.

3.) Redirect Space(%20) To Dash(-) In WordPress Categories URL:

In Blogger label URLs, spaces are changed through < %20 but in WordPress that are changed by so here we shared an article about How To Redirect Space(%20) To Dash(-) In WordPress Categories URL? You can read more there about it.

4.) Redirect Blogger Archives To WordPress Archives After Migration:

Blogger archives are different from WordPress archives URLs but after migration, Google and other SE remain hitting Blogger archives URLs so we shared an article about Redirect Blogger Archives To WordPress Archives After Migration You can read more there about it.

Recommended For You:
7 SEO Wins That Take 5 Minutes

5.) Redirect Blogger ATOM Feeds To WordPress Feed After Migration:

Blogger feeds URL are totally different then WordPress feeds URL but you must have to make it work Blogger feed URL also as you have entered your Blogger feed URL many where and now they are getting 404 errors so we shared an article about Redirect Blogger ATOM Feeds To WordPress Feed After Migration You can read more there about it.

All In One .htaccess File For Blogger to WordPress Migrator:

Now if you dont want to read all above article then just add the ollowing codes in your WordPress blog .htaccess files now and redirect all Blogger urls to new WordPress urls so you will not get any more 404 errors from now on.

## Best .htaccess File For Blogger To WordPress Migrator ##
## Shared By EXEIdeas(www.exeideas.com) ##

## Remove ?m=1 & ?m=0 From URLs ##
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
RewriteCond %{QUERY_STRING} ^m=0$
RewriteRule ^(.*)$ /$0? [R=301,L]
## Remove ?m=1 & ?m=0 From URLs ##

## Redirect %20 To - In URL ##
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/?category/(.*)\ (.*)$ /category/$1-$2 [L,R=301]
</ifmodule>
## Redirect %20 To - In URL ##

## 404 Blogger URLs 301 Redirect ##
Redirect 301 /search/label http://www.example.com/category
Redirect 301 /search http://www.example.com
Redirect 301 /feeds/ http://www.example.com
## 404 Blogger URLs 301 Redirect ##

## Redirect Blogger Archives ##
RewriteRule ^([0-9]{4})_([0-9]{1,2})_([0-9]{1,2})_archive.html$ $1/$2/ [L,R=301]
## Redirect Blogger Archives ##

## ATOM Feeds ##
RewriteRule atom.xml feed/atom/ [L,R=301]
RewriteRule feeds/posts/default feed/atom/ [L,R=301]
#RSS FEEDS
RewriteRule feeds/posts/default?alt=rss feed/ [L,R=301]
RewriteRule rss.xml feed/ [L,R=301]
#Comments Feed
RewriteRule feeds/comments/default  comments/feed/  [L,R=301]
RewriteRule feeds/comments/default?alt=rss comments/feed/  [L,R=301]

Customization:

Just change http://www.example.com with your WordPress blog domain and rest will be ok. You dont have to edit any extra code more.

Recommended For You:
WordPress Themes: Four Reasons To Pick The Paid Ones

.htaccess File Editing Warning:

When you are editing .htaccess file then keep in mind that you have to start adding your new codes at top. After that, check your site that code is working or not. Then also check your all rest and pre added codes that are they working or not. If not working then add the new code below them.

Last Words:

This is what we have and shared in easy steps for newbies so that they can easily know how it works. Stay with us because we are going to share a whole guide step by step about WordPress and make it easy for you. If you liked it then share it and be with us to get next tutorial. If you have any problem then feel free to ask us. We will help you with what we can or have.

You Like It, Please Share This Recipe With Your Friends Using...

Be the first to write a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *