I have a php page that, based on the url will find the category and/or article after exploding the url. However, my mod_rewrite does not always point to the proper file.
I want everything that points to my article directory to go to my index.php file in that folder.
For example, if you had the url I would want .htacess to point to articles/index.php, where it would be determined that copywriting was the category and 4-steps-to-writing-powerful-sales-letters was the article.
The following code works for three of my categories, but it results in a 404 error when one of the categories is called for. These are all database driven, so the url comes from the same record as the category comes from.
Here is my rewrite code. Can anyone point out what I am doing wrong?
Thanks a lot in advance!
Motorcycle Rallies and Events
I want everything that points to my article directory to go to my index.php file in that folder.
For example, if you had the url I would want .htacess to point to articles/index.php, where it would be determined that copywriting was the category and 4-steps-to-writing-powerful-sales-letters was the article.
The following code works for three of my categories, but it results in a 404 error when one of the categories is called for. These are all database driven, so the url comes from the same record as the category comes from.
Here is my rewrite code. Can anyone point out what I am doing wrong?
Code:
RewriteEngine on
RewriteRule ^articles/[chars]+ /articles/
Thanks a lot in advance!
Motorcycle Rallies and Events