(Warning: LazyWeb request)
Solved! See comments. Thank you, Ben.
The format of my post links has changed from
http://www.pencoyd.com/clock/2003/12/12.html#a293
to
http://www.pencoyd.com/clock/2003/12/12/TITLE/
I need to use a regular expression redirect to change my 2.5 years of previous posts to something not broken (and I need a better 404 page, but that’s easier and separate), so I need to change
.html#wildcard
to
/
in the .htaccess file.
That won’t get down to the individual post when I’ve had multiple posts in a day, but it won’t be totally off and broken, as it is now.
I hope to use Webmin (my ISP’s web-based config application) to make the change to the .htaccess file, rather than editing it manually, but I need the right format for the grep.
If this is second nature to any of my readers, I’d welcome a tip.
3 responses so far ↓
1 Ben Metcalfe // Dec 31, 2005 at 1:47 pm
Try
RewriteEngine On
RewriteRule ^clock/([0-9]{4})/([0-9]{2})/([0-9]{2}).html(.*)$ /clock/$1/$2/$3 [R,L]
(should all be on one line, in case WordPress word wraps the comment…)
2 John Roberts // Jan 1, 2006 at 10:58 am
Thanks! With one edit, that did the trick. I didn’t need the first clock/ because RewriteBase /clock/ was already set.
3 Ben Metcalfe // Jan 2, 2006 at 7:53 pm
Glad to be of help!
Leave a Comment