Wordpress | Bear, Diah and Pasha

Posts Tagged ‘wordpress’

Redirecting my WordPress Subdomain to Main

Posted on the February 8th, 2010 under Bear time by papabear

I hate complicated things and naturally, I would look for shortcuts while fully aware that most shortcuts do not work… Tau tak pe…

This time, I took the shortcut in redirecting my sub domain under http://bbd.kisahberuang.com to http://kisahberuang.com.

The shortcut that I am referring to is using the redirect function in my cPanel.

So, after importing all entries and comments, I selected Redirect with or without www and then selected the Wild Card Redirect as well. It was supposed to make your old links go to your new links when people click on them. So it said…

Done. Tested. The main URL has no issue and it got directed to the new domain. But, the old links, such as from search engine results, gave a page not found instead… Hampeh betui…

I saw Sam of serverfreak online and asked him about my problem. He gave me a solution. That’s why I changed from my previous hosting to serverfreak. It has the best customer services so far. Promote dia sebab dah tolong for free… If you need a reliable hosting, give serverfreak a try. Go to http://www.web-hosting.net.my/.

The solution. Changed the .htaccess file in the subdomain. Changed the original,

RewriteCond %{HTTP_HOST} ^bbd.kisahberuang.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.bbd.kisahberuang.com$
RewriteRule ^(.*)$ “http\:\/\/kisahberuang\.com$1″ [R=301,L]

To

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?bbd.kisahberuang\.com [OR]
RewriteCond %{HTTP_HOST} ^kisahberuang\.com
RewriteRule (.*) http://www.kisahberuang.com/$1 [R=301,L]

Now, I managed to get any URL referring to the old domain to go to the new domain. Yes! Aku berjaya…

p/s;

Still could not figure out how to get old links/entries to go to the old links/entries in the new domain. Camna ek?

Popularity: 1% [?]

A Simple Widget for Your Blog

Posted on the December 9th, 2008 under Blog by papabear

sideIt is good to be back after a few days away due to the celebration of Aidil Adha recently. I have been receiving a few queries on how to put the link to my RSS feed using the widget at the bottom right of this blog page and therefore, I might as well share it with all of you who wants to have that as well.

Before I go on, please take note that I am not a programmer and therefore, my explanation would not go beyond my limited technical knowledge. Furthermore, I found this piece of code while hopping around from one blog to another and I could not remember where I learned this but this method was mentioned in a few blogs out there. So, blog hopping is not really a waste of time after all…

This method is the simplest that I have found so far. The other method that I learned was more complex and required that you have access to your hosting server. So, for the benefit of those who are not self hosted, I have decided to teach you this simple coding and it is what I am using too.

CAUTIONS: I am not responsible for any damage to your blog so do this after you have backed up your code and at your own risk!

Below is the code that you need to copy to your HTML file.

Popularity: 61% [?]

Update: 06-10-2008

Posted on the October 6th, 2008 under Blog by papabear

kisahberuang.comEid Mubarak, Salam Aidil Fitri, Salam Lebaran: This Raya has been mostly about driving here and there for my family and I. On the eve of Aidil Fitri, I drove to my office and then back to my house to pick up my wife and son and then we drove to Malacca to pick up my in-laws.

On the first day of Aidil Fitri, I drove to the mosque and then to Tesco, both in Shah Alam. On the second day, I drove to KL to pick up the MPV and then drove to Central Market looking for some buttons and then drove back to Shah Alam followed by a drive to Port Dickson for a picnic and then back to Shah Alam.

Related Posts with Thumbnails

Popularity: 28% [?]