Problem with htaccess, need help please

Discussion in 'Apache' started by fluid, Jan 3, 2008.

  1. #1
    I am building a new site on pets with the following in mind:

    1. Have categories (eg cats, dogs, rabbits etc)
    2. Have friendly URLS for articles on the site (eg mysite.com/cats/my-cute-title-cat/
    3. If a user types in mysite.com/cats, he should see a list of articles within that category.

    I have set up the database with tables for the categories and everything else. I've got a script list_articles.php which given the name of the category will display all articles within that category but i am not sure what to put in the htacess file. My attempt is as follows:

    The above displays the article correctly but when a user arrives at mysite.com/cats, i want to show a list of articles within the "cats" category as well.

    Can anybody help please?
     
    fluid, Jan 3, 2008 IP
  2. fluid

    fluid Active Member

    Messages:
    679
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #2
    fluid, Jan 7, 2008 IP