mod rewrite with .htaccess

Discussion in 'OT Technology' started by Woodmaster, Nov 21, 2004.

  1. Woodmaster

    Woodmaster New Member

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

    Anyone have an idea on how I could make this work without the articles folder conflicting with each other? Thanks. :noes:
     
  2. Bono

    Bono Guest

    Code:
    RewriteRule ^articles/(.+) /articles.php?id=$1
    RewriteRule ^articles/ /articleslist.php
    
     
  3. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    Thanks for the help BONO.

    Now it thinks the links are ...

    /articles/articles/15

    Hmmm..
     

Share This Page