Wordpress Permalinks
I’ve only recently discovered what Wordpress has had as a feature for quite some time.
I enabled “Permalinks” on my site with the template tag structure:
/%monthnum%/%day%/%postname%.html
It is done using apache’s mod_rewrite, which I used for the RayDehler counter I made a few months ago.
Here is the .htaccess text that’s actually used to output the post URI in that format:
RewriteRule ^([0-9]{1,2})/?([0-9]{1,2})?/?([_0-9a-z-]+)?.html([0-9]+)?/?$ /index.php?monthnum=$1&day=$2&name=$3&page=$4 [QSA]
Mod_Rewrite is really good for Search Engine Optimization.
