URL rewrite and amember htaccess script interaction

Discussion in 'Installation' started by scooterdam, Nov 21, 2009.

  1. scooterdam

    scooterdam New Member

    Joined:
    Oct 24, 2009
    Messages:
    27
    hi,
    where do I put my own rewrite rules in the htaccess file in order to have them work? I have one rewrite rule that works until Amember inserted its own htaccess script.

    my rule is :

    RewriteEngine On
    RewriteBase /

    RewriteRule ^([a-z0-9]+)/([a-z0-9-]+)/$ content/content.php?cat=$1&color=$2 [NC,L]

    thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You should place this before amember code.
    But I believe you should rewrite your rule and add several conditions so it will parse only own requests.
    For example I believe with current rule /amember/admin/ requests will be handled incorrectly.

Share This Page