url rewriting in another repertory

Discussion in 'Programming' started by luden, Jun 9, 2011.

  1. #1
    Hello,

    I have an url like that : catalog/?action=add

    I would like it like that catalog/add

    catalog is a directory and action is the variable

    I did that : RewriteRule ^catalog/([0-9a-zA-Z-]+)\$ /catalog/?action=$1 [L]

    My .htaccess file is in the root directory not in the catalog directory

    What is wrong ?

    Regards

    Frank
     
    luden, Jun 9, 2011 IP