Recently I have made good use of the Apache .htaccess file to redirect and rewrite URL’s to keep visitors from getting page not found errors. Moving three domains, creating a subdomain or two, and then moving things around again, has created ample opportunity for lost visitors.
There are lots and lots of pages in the Google search results for “.htaccess,” so here are my notes, all in one place, for your reading pleasure.
Redirect visitors from an old site to a new site
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.newsite.com$ [NC]
RewriteRule ^(.*)$ http://www.newsite.com/$1 [L,R=301]Redirect visitors using .html links to .php links
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]
RewriteRule ^(.*)\.html$ http://newdomain.com/$1\.php [L,R=301]
RewriteRule ^(.*)\.php$ http://newdomain.com/$1\.php [L,R=301]
RewriteRule ^(.*)$ http://newdomain.com/ [L,R=301]
Let the drooling begin. Apple Macbook Air.
I’ve fiddled around with the header image, finally getting the original image in its entirety once again. The cropped image was nice enough, but I prefer the one I’ve had for most of the past decade. The image is a slice of an old Corel wallpaper called Autumn Coast, which I’ve misplaced. If any of you still has a circa 1997 Corel images CD, let me know in the comments.
There is also the beginnings of a true colophon page, which is details about how the site is published, the fonts used, and other nerdy tidbits.
Once upon a time, a long time ago, there was a site called mydogmeg.net. Part of that site was a subdomain called geek.mydogmeg.net. Geek was a collection of reference sites organized in to categories and beautifully displayed through CSS.
Mydogmeg has been off the air for some time now, and I have missed its content, and I have missed the geek subdomain as well. One of the benefits of switching to Blue Host is the ability to have subdomains of my own.
So without further ado, I give you geek.zanshin.net.
NB. I haven’t tested these links in a long time, so many, or all, of them might be dead. I’ll be updating them in the coming days. Please feel free to use the comments to point out dead ones, or give me new live ones you think are worth of listing.
While we were in Germany last fall, I proposed to Sibylle on her birthday. She joyfully said yes.
{{ $image := .ResourceGetMatch “ring.jpg” }} Since then we have looked at rings on several occassions but hadn’t found a matching set we liked. Shortly before Christmas, while doing some shopping at Legends, we saw a pair of rings we both liked. We kept looking but that pair continued to stand out in our minds.
Today, while in Manhattan so Sibylle could teach a few lessons, we visited Zales again. Once again we were drawn to the same pair of rings. After a few moments thought, and some questions to the jeweler, we bought the rings.
We are both very happy.
Being a nerd, I have a salary history spreadsheet that contains every pay increase, every promotional raise, and every new job I’ve had in over the past twenty-five years. As much as possible these events are tied to the actual dates, therefore I can calculate how much I made at each salary.
The limitations of the Excel DAY() function come into play here, as it treats each year as twelve 30-day units, for a total of 360 days. Five missing days twenty five times is only 125 days out of 9125, or 1.36%. and acceptable margin of error.
Today I had the pleasure of entering this year’s salary increase, and in seeing a new lifetime earnings total.
$1,508,318.30.
Crikey.