htaccess modrewrite question

Discussion in 'OT Technology' started by Woodmaster, Mar 6, 2005.

  1. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    RewriteEngine On
    RewriteRule ^articles/(.*) /articles.php?ID=$1
    RewriteRule ^articles/ /articleslist.php

    What's wrong with that? I know the rules are conflicting because of them both pointing to articles/... but that may not be the problem. The articleslist.php displays the news articles in a abreviated list, where as articles.php (with its corresponding uniquely pulled id) is the individual page for that article. Any ideas? thanks guys..
     
  2. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    :( anyone?
     
  3. skooter

    skooter Guest

    Try this.

    Code:
    RewriteEngine On 
    RewriteRule articles/([0-9]+)/?$ articles.php?id=$1
    RewriteRule articles/?$ articleslist.php [L]
     

Share This Page