I've recently changed blogging systems, and so my error logs are full of 404's as people follow old permalinks. (Not very "perma", huh?)
Anyway, I know it's possible to put a rule in my htaccess file to do redirects, but my regex skills are just not up to the task.
Old link:
New link:
I tried:
but no luck.
Example URLs:
Old: http://gobecky.net/2007/09/03/home-sweet-home.php
New: http://gobecky.net/2007/09/03/home-sweet-home/
Help?
Anyway, I know it's possible to put a rule in my htaccess file to do redirects, but my regex skills are just not up to the task.
Old link:
Code:
http://gobecky.net/yyyy/mm/dd/some-words-here.php
New link:
Code:
http://gobecky.net/yyyy/mm/dd/some-words-here/
I tried:
Code:
RewriteRule ^([0-9]+/[0-9]+/[0-9]+/[^/]+)\.php$ $1/
Example URLs:
Old: http://gobecky.net/2007/09/03/home-sweet-home.php
New: http://gobecky.net/2007/09/03/home-sweet-home/
Help?