I'm currently using pretty permalinks in the following format:
/2009/06/29/sample-post/
Previously I was using /archives/123.
When I made the switch, I added a mod_rewrite rule to capture the old format and redirect. The .htaccess appears as follows:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule archives/(.*) /?p=$1 [R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Previously this would redirect the /archives/123 format to /?p=123, which would then be converted into the "pretty" format.
This system broke when I upgraded to 2.7 for reasons I'm unable to figure out. When I browse manually to an /archives/123 url, I get a 404 error, but if I type in /?p=123 then it indeed gets converted to the pretty format. I'd like this to happen automatically obviously.
Any idea why this stopped working or what I should do instead to achieve the same effect. Thanks!