Hiya folks,
I've been working on an plugin that enables me to add addresses to a database through the wordpress administrator interface and show it on our website. That all works fine - I made a custom template that calls the display function of my plugin and voila - I get a nice list of people on /people/.
However, I tried extending it so I can use /people/$name/ instead of having to use /people/?str=$name to view the extended information for a person, but that won't work too well unfortunately - it throws me a 404.
None of my rewrite rules will work, EXCEPT the numerical ones. So if I type /people/$id/ it works and redirects to /people/?id=$id:
RewriteEngine On
RewriteBase /
RewriteRule ^people/([0-9]+)/?$ people/?id=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
My mod_rewrite rules are probably the same as everyone else who's running 2.0.5 since I've tried different options and still got the same .htaccess file.
Does anyone have any idea on how to solve things like this?