Hi yaea04,
I was pondering about almost the same issue and thought I would post a question here. Then I noticed your recent post so I'm going to join in!
I think you are on the right path in getting it to work. I have myself been able to do it...but I'm wondering about a slightly different issue.
Well, first to see if I can help you!
I think your first problem relates to the URL you are trying to access (sorry my tech talk is a little limited).
Instead of ([a-z]+).html$ you might try just ([a-zA-Z]+)$ as you are not trying to translate a html file when entering yourdomain.com/fred
The other problem might be that you have already specified RewriteBase as "/" and then telling Apache that your source file for "/index.php?person=$1" also begins with a forward slash "/".
Those are my thoughts anyways...This is my first day with mod_rewrite.
TO MY QUESTION:
I have dynamically generated content and would also like to have a first level category rewritten/translated. I've seen many people do rewrites such as:
/modules/content/about/14/ and then they use say "14" to pull the info out of the database which isn't that difficult...and fairly easy to match...
BUT say my index.php?catid=14 is located in modules/content/ and I want to rewrite the URL as mydomain.com/about
How do I regex that without having to include a number in the URL such as:
mydomain.com/about14
Of course I could change the index.php?catid=14 to query on title like:
index.php?cattitle=about
which would give me the right content.
But there are so many possibilities to regex for if I make a rule for any alphabetic characters directly in the root.
So my rewrite rule would look something like???:
RewriteRule ([a-z]+)$ modules/content/index.php?cattitle=$1 [L]
I also thought about adding each such rule to .htaccess with php fwrite...
What do you think?