Redirects on Go Daddy using .htaccess

Go Daddy .htaccess

I had a lot of trouble getting .htaccess redirects working correctly on Go Daddy. One of our customers is using Go Daddy’s WordPress hosting and we set up a new domain for them.

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L]

The above in a .htaccess file worked great in our testing.

One important note: We found that the CDN Go Daddy has running cached these redirection rules and it took a day to clear. While this was happening, we thought the redirect wasn’t working. Well, it worked on every single sub page, but it didn’t work on the home page. If we loaded the url in an Incognito Window it wouldn’t redirect. But if we pressed Enter it would redirect. It was showing a 200 status on first load, and then would follow the .htaccess rules. But, this all cleared up after 24 hrs.¬†

Integration of hreflang in WordPress

I just integrated hreflang tags on a WordPress site for the first time ever. Since there is only minimal documentation online, I thought I’d provide the script to do so, here.

Just place the code in your header section of your WordPress template, which is usually header.php in your theme folder.

For reference, if you have any trouble, you’ll want to double check that your apostrophes and quotes are¬†standard unicode, because when copy/pasted they can get adjusted to be another character that doesn’t work.

Here’s what I used for hreflang in WordPress:

I hope this helps! Good luck with your multilingual project!

High CPU issues with kernal_task on Mac

I was having tremendously high CPU issues with my Mac last week. So high, that I could barely watch a video without my kernal_task blooming to over 400 % CPU! It was difficult to get work done at times, due to the problem. It confounded me for a while, and I tried searching online for resolutions and they were all useless.

I finally set up an appointment at the Apple Store to get an analysis. I figured maybe my battery or my memory was going bad. Turns out, the scan of my hardware came back perfect (which made me happy).

They then offered to reinstall the OS for me, and I had them reinstall Yosemite (no data loss, even though I was backed up). Sure, I could’ve done this on my own, but I kind of thought they might be able to do it faster and find other problems.

Thankfully, the reinstall solved all of the issues! Now, my kernal_task hovers around 4-5%, even when I’m watching movies. My CPU usage is low, and instead of the computer fan blowing non-stop, it’s silent again!

Update: So the issue completely goes away if I only have 1 external monitor plugged into my Macbook Pro. If I use both external monitors, my computer is completely sluggish — moral of the story, I’ve been using 1 external monitor lately. I am planning to just get a new Macbook Pro fairly soon, so problem will be solved with more RAM.