We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33992 ☆ A M B ☆
    • 455 Posts
    Hello,

    I want to add some optional paramteres to urls. I want to seperate page furl ($_GET[’q’]) from it by a comma. I need a url like this for SOME pages: http://sitedomain/parent/page.html,alpha
    i tried these:
    RewriteRule ^(.*),?([a-z]*)$ index.php?q=$1&b=$2 [L,QSA]
    RewriteRule ^(.*)(,?)([a-z]*)$ index.php?q=$1&b=$2&c=$3 [L,QSA]
    RewriteRule ^(.*)[,]?([a-z]*)$ index.php?q=$1&b=$2 [L,QSA]
    RewriteRule ^(.*),([a-z]*)$ index.php?q=$1&b=$2 [L,QSA]

    They didn’t work well. The last line is good but the comma is not optional.

    Please help me to solve it....


    Thanks
    AHHP
      God loves me. 【ツ】


      MODX.ir (Persian Support)

      Boplo.ir/modx/ (Persian)