.htaccess redirect guide

My favorite tip:

Changed file extension?

This example is perfect if you've decided to switch to .php from .html pages. It will look for any .html page and redirect it to .php (ie http://www.example.com/yourpage.html and redirect it to http://www.example.com/yourpage.php). Now, be careful with this, it does mean any html page. I did this on one of my sites and had totally forgotten I had an iframe with .html content on some pages... I didn't notice for weeks that it was broken :S.
So learn from my mistake 😉 check, double check, then check again.

RedirectMatch 301 (.*).html$ http://www.example.com$1.php

It's been a year and a half since 18 miles hurt so much.

I seem to be making a habit out of faltering on my long runs. I got started late--7 am. My hips and abdominal muscles were already sore. My right ankle was stiff. Mile 16 was an 11:29 mile, despite running for 95% of it.

Conditions were 75.6°F average temp and 79% humidity with virtually no wind, mostly cloudy during the run.

Total time, 2:49:53 for 18.00 miles (9'26" mile pace). Target pace was 9'18". It hurts to move anything from my waist down at the moment, and the inflamed tendon is letting me know how ticked off it is. On the positive side, this is my first 40 mile week in a while.

Elevation Gain (ft) +1,086 / -1,089

I bonked on the NE side.

Trying to actually run easy.

Very nice weather this morning. 65'F outside, partly cloudy, and not too humid. Rain came in about an hour before my run.

I tried to run "easy" based on my 5k time. According to Vdot Calculator and Training Paces based on a 21:54 5k (using Daniels' Running Formula, 2nd edition), that should be 9'18" per mile. Today's workout was 11.31 miles in 1:43:33 (9'10" pace). Amazingly, 9'15" was a bit of a challenge for most of the run.

Rip page to new window in firefox

On the bookmark toolbar, right-click and select "New Bookmark..."

Under name, give your bookmark a fitting title, like, "Rip page."
Under location, enter the following code:

javascript:var x=window.open(document.URL, '_blank','width=800,height=600')

Or... just drag the following link to your bookmark toolbar.
Rip page.

Update on August 5, 2008:

I found the following works well for ripping a Google Docs page to a new window (former window closes as well.)


Rip page.

Update on April 13, 2009 :
This code adds scrollbars.


Rip page.