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.

54 thoughts on “Inspirit Blog switches from Windows based host to Linux based host

  1. 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. 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. 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. 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!

  3. 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

  4. 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.

  5. 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

  6. 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.

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

  8. I had few things up in my mind.. As everyone knows there are lots of web hosting agencies spread around, its a matter of fact to buy a domain and host them over the internet. However i took HUGE amount of time spending in debugging few bugs myself. While there are better services like Marble Host which provides web hosting as well as assistance in web design and service, I feel now, i could have better used it!

  9. I will recommend this linux blog to my friend that was looking for it, excellent articles for linux. Stumble up ! , Andy

  10. Windows hosts never really made sense to me. In my opinion, Linux hosts have pretty much everything Windows hosts have, plus massive free online support, good 301, native mod_rewrite and much more.

    Good move on switching over to linux hosting!

    Theos latest published blog-post ………. Checklist ‘Mijn Website Is Stuk’

  11. What makes me prefer Linux like you do is its cheaper than the other platform plus all of what I need for a hosting can be provided by this system. Almost all the tool use are free and web design deployment is very convenient. Great that you decided to shift!

  12. I was not an expert at blogging and all related tasks so Majority of my posts had digits and ‘p’ in their permalink. Later, I came to know that those are very bad on part of SEO. To be very true, that was the most difficult task for me to change permalinks and to have keywords in urls. I think we should learn a bit before starting anything but our experiences always teach us in a better way.

    Mikes latest published blog-post ………. News

  13. As a Webmaster,I strongly recommend Linux server,because it is safer and cheapper(even free).

    Edward.Hs latest published blog-post ………. 16 Different Clones You Can Build with Drupal

  14. Thats a great start! Linux based hosting is more stable and is considered better when you want to target long-term. I am thinking to go for bluehost for WordPress blogs as they’re recommended.

  15. I like tis site very much and I like to say hello. I hope you take a look at my page too.

    All good wishes from Ira

    Ira from St. Petersburg

  16. I’ve got a few wordpress blogs running on IIS on Windows servers that have no problems, but Unix/Linux is a more natural environment for PHP so I’m slowly moving over.

  17. This post is really a must bookmarked for me! Thank you so much. 😀
    Just asking, do you use Aweber? If so, can you provide more information on this? I am subscribed to your rss to check if you are going to post something on Aweber. 🙂

  18. This is the right decision. Linux is much better than Windows hosting. Plus, you will find many open source codes to run at Linux hosts.

  19. I like it to be filmed for hot movies. I am a german girl from Neuss. I like this site because it is very interesting for me. A lot of good wishes sends generalissimo Shetland from Germany.

  20. Denizli Barosuna Kayıtlı Avukatlar, Hukuk Büroları,Avukatlık Burolarının Bulunduğu İnternet Portalı

Leave a Reply

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