locked
Understanding a code line RRS feed

  • Question

  • User637893553 posted

    I'd be grateful if someone could help me to understand this line of code in .httaccess so I could know why doesn't work after converted to web.config

    RewriteRule ^([a-z0-9\-^/]+)/([0-9]+)$ index.php?lang=$1&p1=$2&page=$3&%{query_STRING} [L]

    If you try petremdistribuciosa.com all options returns to index.php page and I can't access to content pages.

    Wednesday, May 14, 2014 5:41 AM

Answers

  • User1183424175 posted

    Hi,

    I think it should match the request url like http://hostname/fr-fr/33?id="4" , and then rewrite to /index.php?lang=fr-fr&p1=33&id="4".

    So I think The &page=$3 in the rule is the wrong place. Please check it.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, May 15, 2014 3:17 AM