Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite works about 75% of time

Status
Not open for further replies.

HDRules

Programmer
Jan 12, 2005
16
US
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?

Code:
RewriteEngine on
RewriteRule ^articles/[chars]+ /articles/

Thanks a lot in advance!

Motorcycle Rallies and Events
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top