So I’m trying to get this whole .htaccess / mod_rewrite thing working but I am having about as much luck as some clever analogy where a tortoise or a donut don’t really have a considerable amount of luck.
I’ve never done this before, so chances are I’m doing something really basic really wrong. At least I’m hoping so. This doesn’t work on my test server nor does it work on my live site. I am fairly confident that I have mod_rewrite enabled on both servers because I used to have wordpress running on both and the friendly URLs worked.
Okay so here is my .htaccess:
RewriteEngine On
RewriteRule ^/([0-9]+)/([0-9]+)/([0-9]+) /index.php?y=$1&m=$2&d=$3
And what this is supposed to do is take [joshuajenkins.com]/?y=2006&m=12&d=04 and switch it over to [joshuajenkins.com]/2006/12/04 (or localhost or whatever, I don’t think it should matter what comes before all that, hence the carat?)
Right so I’m not getting an error or anything. I just get nothing. Trying to go to a xxxx/yy/zz page just results in a 404.
Any help would be glorious.