Home » News

Inspirit Blog switches from Windows based host to Linux based host

2 September 2008 22 Comments

Permalink Issues on the previous IIS Windows based host

If you visited Inspirit Blog in the last few days you probably might have encountered a HTTP 404 - Page Not Found or even a Error Establishing Database Connection page! Before Inspirit Blog went down, I had somehow managed to set up pretty permalink structure even as I was on an IIS based server over the default (SEO-unfriendly) ugly permalinks which look like http://www.inspiritblog.com/?p=134. But then I found myself in another trouble, which usually happens when you go off-the-track! I was cool with having the SEO friendly pretty URLs set up on my blog, but in my previous posts (and on other blogs that linked to posts on Inspirit Blog) the links were directed to the older permalink structure AND those links didn’t redirect to pretty permalinks like they should do.

301 redirects that never worked fine

So, I decided to use 301 redirects on my blog to redirect the old ugly permalinks to the new pretty permalinks. I tried many available wordpress plugins like Yoast’s Permalink Redirect, Deans Permalinks Migration, FUcoder’s Permalinks Redirect and Advanced Permalinks to serve the purpose but nothing seemed to work. The level best that I could achieve was with Scott Yang’s permalink redirect plugin which reloaded a page with new permalink after it had already loaded with old permalinks. This meant that a page was loaded twice for a one time access! And besides this, what really sucked was that my homepage started reloading infinitely in loops. While I left this up while working on finding a solution, for some days - I didn’t realize how much bandwidth Inspirit Blog was eating up like a monster!

I realized this only when I talked to my friend Leo about it when I found Inspirit Blog not opening up once, and other time when I saw a database error. Leo had been so generous to me (And I am really thankful to him for that), he had provided me webhosting on his host for so long! and this silly plugin ate so much bandwidth that it might have costed him some extra bucks!

Decided to move to a Linux based host

Well, I was already giving up on editing that plugin and nothing else seemed to work. Also, I had earned some money from this blog that I could use to buy some webhosting for myself. This was the time when I made up my mind that I’d finally move to a Linux based web host and free myself from all these issues! Plus, if I got my own hosting and space, I’d also start some new projects that I have in mind. More control with cPanel, fantastico support, webmail, mod_rewrite support, etc. I just so wanted it all!

Error Setting Up Inspirit Blog on Sameer’s Host

I talked about my plan to switch host with my friends Sameer and Mohit and wow, these amazing people were so ready to support me on their own respective hosts when I was thinking to BUY webhosting for myself! In fact, I really liked a plan at NetFirms and decided to go for it, but they don’t accept Paypal and I don’t have a credit card. So, the netfirms idea was dropped and I couldn’t afford the hosting packages at other sites…

Sameer helped me move the Inspirit Blog files and database to his host and I pointed the domain to his host. I updated Leo, that I had moved to a linux based host and that I had changed the DNS and I’d be fine if he removed the database and files from his host. I had all in the backup. But for some unknown reasons, things didn’t work out. Probably that was an error in my database that Inspirit Blog redirected to the root of the directory in which Inspirit Blog was installed, instead of opening my blog from its own directory!

Finally on linux based hosting with HostGator - Thanks Mohit!

Then, Mohit helped me set up Inspirit Blog on Hostgator. We put the database and the files where they should be. Then Mohit created an add-on domain for Inspirit Blog and I pointed the DNS to Mohit’s host and erased the ones pointing to Sameer’s host. I knew it would take a couple of hours for the DNS update to take place and in the meanwhile I reviewed my database in order to manually remove some clutter that I didn’t want and thought, might be causing the problems.

That is when I spotted a problem in siteurl and home field under the wp_options table. Even after the DNS update had taken place, opening InspiritBlog.com still redirected to the root of the directory in which Inspirit Blog was installed at Sameer’s host, instead of opening my blog from the installation on hostgator. I cleared and updated the set parameters in siteurl and home under the wp_options table in the database, and lo! God smiled on me.

A Better “Inspirit Blog

Everything is now back to normal. In the last 4 or 5 days that Inspirit Blog has been up again on its new host, I have optimized the blog’s theme, removed some plugins that I don’t use and installed some new ones. I have also made some changes to the navigation bar. Its better organized now and more comprehensive. Another major change is integration of Google Custom Search into the blog. I have replaced the default Wordpress search with a Custom Search Engine powered by Google. How I did it without using any extra pages, posts or plugins is interesting and useful as well, and I will cover that in a dedicated post soon.

I am now going to catch up the free blog reviews thing soon. I am planning to set up a sub-domain here that will be dedicated to free blog reviews. Thus, I’ll clear the main site off all the reviews and keep them in one place at the sub-domain. I believe it would be nicer, that way. Anyway until further update, dig through my previous posts. I hope you find them helpful. Enjoy your stay here.

Click here to Subscribe to FREE email updates from Inspirit Blog, so that you do not miss out anything that can be valuable to you and your blog

22 Comments

  1. Will on 03.09.2008 at 03:04 (Reply)

    Great to see the site back up and running properly. Yes, linux on Hostgator is the way to go for sure! It is the only hosting I recommend on my WordPress services site.

    Will’s latest published blog-post ::: A Fix For The Image Upload Error

    1. Abhinav Sood on 03.09.2008 at 22:46 (Reply)

      Yes, thanks Will. The few people I talked to before you recommended BlueHost or other lesser known services. In fact, I was going to buy webhosting from NetFirms but Mohit also pressed me on this that HostGator is lot better as he had used Netfirms hosting earlier.

      I am glad I listened to you and Mohit :)

  2. kouji from haiku poems examples on 03.09.2008 at 05:57 (Reply)

    congratulations on the successful move. :) i’m glad to see your site back up and running.

    kouji’s latest published blog-post ::: haiku poem: welcome

  3. Sameer Relan on 03.09.2008 at 10:52 (Reply)

    Hey Abhinav,
    Apologies for the problem that you encountered when you planned to shift to my hosting. I think we tried but… you know, I am a designer and not a technical person but I tried my every bit to sort the problem out. Congratulations for successful move, anyway.

    No more ugly URLs. This calls for a booze party! When do we meet, so? :)

    1. Abhinav Sood on 03.09.2008 at 22:58 (Reply)

      C’mon Sameer - The problem was with the database, not with your host.
      I couldn’t just figure it out in time! I could only be sure about it when the blog was set up on Mohit’s host and it still pointed to arrticles dot com. Anyway, everything is fine now. Thank God!

      And party.. Anytime,dude!

  4. Mixtura on 03.09.2008 at 14:00 (Reply)

    Did you know Microsoft and Hotmail had their share of web hosting FAIL?

    1. Abhinav Sood on 03.09.2008 at 22:48 (Reply)

      No, that’s news to me.
      See how things can go wrong with anyone!
      Even a giant corporation like Microsoft can’t help if lady luck doesn’t favor it.

  5. Jasdeep on 03.09.2008 at 15:09 (Reply)

    Welcome to the world of Linux, dude!

  6. Abhinav Sood on 03.09.2008 at 22:50 (Reply)

    @ Jasdeep
    @ Kouji

    Thank you, both of you :)

  7. [...] Bakshi dot com soon. I am working on setting up the ad-spots as I lost the configuration while switching from windows based hosting to linux based webhosting, recently. Amor, you can email me the 125 square banner so that I can put it up here. And Eerik, [...]

  8. John from Marland Real Estate on 04.09.2008 at 04:08 (Reply)

    Congratulation on your move. It can be a very nerve-racking experience. a lot of times it is hard to justify but when everything is back up and running switching over to Linux is always worth it.

    Johns latest published blog-post ………. Baltimore Real Estate

  9. selcuk from web tasarımı on 04.09.2008 at 04:31 (Reply)

    i hate the windows hosting, linux is better than windows.

  10. Chelle from Lose Weight for Free on 04.09.2008 at 07:25 (Reply)

    I tried windows hosting once, i will never do it again! Life has been much easier with wordpress on linux :)
    Chelles latest published blog-post ………. How to Get Free and Cheap Exercise Videos

  11. kermit from realtor websites on 14.09.2008 at 07:10 (Reply)

    I totally hate Windows. Just about anything that would come along would be better than windows.

    I never had a Windows based host, but that seems like you would just be asking for trouble

  12. aniroy1986 from crazylinks4free on 21.09.2008 at 03:10 (Reply)

    i like windows very much as an os :-)
    but not as an web host. always prefer linux based web host.

  13. Kevin from Web hosting Ireland on 26.09.2008 at 19:26 (Reply)

    Great idea to have sub domain name for boog reviews. The fact you give out a review is great also. After the pain of the switch i think you will be happy with site after all the hard work.

  14. [...] public links >> rewrite Inspirit Blog switches from Windows based host to Linux based host Saved by artisticchaos on Mon 06-10-2008 General Services Acquisition Regulation; GSAR Case [...]

  15. Rick from web hosting reviews on 11.10.2008 at 20:26 (Reply)

    Congratulations on the successful move. I was very luck in this respect, as one of the first things I learned was to NOT use Windows hosting. I read a lot of negative comments about it on the webmaster forums, so I’ve used Linux from the beginning. You made a very wise decision, especially by choosing Hostgator.

    Ricks latest published blog-post ………. Hostmonster Best Web Hosting Review

  16. dave from irish gift shop on 28.10.2008 at 16:18 (Reply)

    I really want to move to Linux as an operating system for my own personaly computer but haven’t had the balls to try it yet. What do you guys think?

    Is it worth the effort in terms of usability, speed etc…? I mainly use my ‘puter for graphics and building sites.

  17. Cheapest gas prices on 10.11.2008 at 02:22 (Reply)

    Linux is definitely better for web hosting. I can’t figure out though why some prefer to have windows for hosting sites.

  18. msn arayüzleri on 16.11.2008 at 07:44 (Reply)

    I never had a Windows based host, but that seems like you would just be asking for trouble

  19. msn arayüzleri on 16.11.2008 at 08:33 (Reply)

    Welcome to the world of Linux, dude!

Leave a comment

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.