Manually redirects your website from Blogger to WordPress

There are plenty of online articles showing that how to switch from Blogger to WordPress. However, sometimes we may face unexpected issues for “My blogger doesn’t have matching URL so it can not import completely to WordPress.” or “I just want to manually redirect to my website.” or even “I have no idea what the heck it is…”.

This article assists someone who looks for the correct answer to manual redirect the post links.


  1. Export your Blogger XML file.
  2. Import your Blogger XML file to WordPress.
  3. Get all the post URLs from Blogger. Also, get all the post URLs from WordPress. The number of both article URLs should be same.
  4. Save two links URL as separate files as JSONP format.
  5. Using ajax and javascript to redirect link between two files.


The first thing is that you’ll need to backup the XML data from Blogger. Go to your Blogger “Settings” and select “Other”, and you will see there is a “Backup up Content” button. Click it to save to your computer.

Next, go to your WordPress admin. Select “Tools” > “Blogger” > “Run Importer”.

Notice that WordPress has its maximum size upload limitation. (2 MB as default) To increase the memory limit, you may have to try some works:

  1. Modify your php.ini and set new variables.

    upload_max_filesize = 64M;
    post_max_size = 64M;
    memory_limit = 64M; //optional
    max_execution_time = 300; //optional
  2. Or modify your .htaccess (hidden file, usually in www folder) and set as below.

    php_value upload_max_filesize 64M;
    php_value post_max_size 64M;
    php_value max_execution_time 300; //optional
    php_value max_input_time 300; //optional
  3. Add these into theme’s functions.php file so it can be visible in your admin interface.

    @ini_set( 'upload_max_size' , '50M' );
    @ini_set( 'post_max_size', '50M');
  4. Contact your web hosting provider if these these solutions do not work.

After successfully import your XML file, now we need to catch the Link URL from both Blogger and WordPress.The easy way to catch all the post URL from Blogger is using it “Blog Archive”. You can set it in your Blogger > Layout > add a widgets.


Once the archive be used and published in public. Go to your Chrome browser and right click to select “Inspect”.

Expand all your achieve tabs to be visible, finding your blog links parent ID or class (usually called .posts). Simply type below code into console and press enter.

urls = document.querySelectorAll('.posts a'); for (url in urls) console.log(urls[url].href);

or you can implement with jQuery

n=$$('.posts a');for(u in n)console.log(n[u].href)

In here, JavaScript grabs all the links under “.posts”class elements and print in on Google Chrome DevTools. Hurray!

You can use the same way to get all the links from WordPress archive widgets.

Now you have both website articles’ links. Paste them on your text editor and save them as json file-extension (JSONP format, uses for cross-domain access), and put them on your hosting space.

Your final result in both files should look like this.


If you have trouble to sort the format.  Microsoft Excel filter tool and Mr. Data Converter may help in the progress.

Finally, go to your your Blogger website, Blogger > theme > Edit HTML. We need to paste some JavaScript code in there to finish the 301 redirecting.

Find </head>, and paste the code above it.


// detect if it is homepage...
if(window.location.href.split("?")[0] == ''){
window.location = '';

// load your old Blogger JSONP format Links 
url: "",
dataType: "jsonp";

function oldfunc(info){
var olddata = [];
for(var i =0; i<info.length; i++){
//global varable
window.oldvar = olddata;

// load your new WordPress JSONP format Links 
url: "",
dataType: "jsonp";


function newfunc(data){
var newdata = [];
for(var i =0; i<data.length; i++){
//global varable
window.newvar = newdata;

// invoke redirecting function once

function getbothval(){
for(var i=0; i<oldvar.length;i++){
// detect Blogger mobile version links ?m=0 or ?m=1...
if(window.location.href.split("?")[0] == oldvar[i]){
// do redirecting...
window.location = newvar[i];


Change and to your site url and it is all set!

19 thoughts on “Manually redirects your website from Blogger to WordPress”

  1. Полностью актуальные новости мировых подиумов.
    Исчерпывающие новости лучших подуимов.
    Модные дома, лейблы, высокая мода.
    Интересное место для трендовых хайпбистов.

  2. Абсолютно актуальные новинки индустрии.
    Важные новости мировых подуимов.
    Модные дома, бренды, гедонизм.
    Самое лучшее место для модных людей.

  3. What’s up colleagues, its wonderful article about educationand completely
    defined, keep it up all the time.

  4. Абсолютно все актуальные события мира часов – новые модели легендарных часовых марок.
    Абсолютно все коллекции часов от недорогих до супер люксовых.

  5. Самые актуальные события подиума.
    Все эвенты самых влиятельных подуимов.
    Модные дома, бренды, гедонизм.
    Приятное место для модных хайпбистов.

  6. Howdy, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam responses?
    If so how do you prevent it, any plugin or anything you can suggest?
    I get so much lately it’s driving me mad so any support is very
    much appreciated.

  7. hello there and thank you for your info – I have certainly
    picked up anything new from right here. I did however expertise some technical issues using this website, since I
    experienced to reload the web site a lot of times previous to
    I could get it to load properly. I had been wondering if your hosting is OK?

    Not that I’m complaining, but slow loading instances
    times will often affect your placement in google and could damage your
    high quality score if advertising and marketing with Adwords.
    Well I am adding this RSS to my e-mail and can look out for
    a lot more of your respective exciting content. Ensure that you update this
    again very soon.

  8. Абсолютно важные новинки мира fashion.
    Исчерпывающие новости мировых подуимов.
    Модные дома, бренды, haute couture.
    Интересное место для модных людей.

  9. Полностью свежие новинки подиума.
    Все эвенты известнейших подуимов.
    Модные дома, торговые марки, высокая мода.
    Самое приятное место для стильныех хайпбистов.

  10. Самые трендовые события мира fashion.
    Все эвенты известнейших подуимов.
    Модные дома, бренды, высокая мода.
    Новое место для стильныех людей.

  11. Несомненно стильные новости мировых подиумов.
    Абсолютно все мероприятия всемирных подуимов.
    Модные дома, торговые марки, гедонизм.
    Интересное место для модных хайпбистов.


發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *