CAN ANYONE TELL ME THIS RewriteEngine FUNCTION?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CAN ANYONE TELL ME THIS RewriteEngine FUNCTION?

    Can anyone tell me about this RewriteEngine? Is function:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^(\w+)$ $1.php
    RewriteRule ^(\w+)\((\w+)/(\w+)\)$ $1.php?$2=$3
    RewriteRule ^(\w+)\((\w+)/(\w+)/(\w+)/(\w+)\)$ $1.php?$2=$3&$4=$5
    RewriteRule ^(\w+)\((\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)\)$ $1.php?$2=$3&$4=$5&$6=$7
    RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)$ $1/$2.php?$3=$4&$5=$6
    RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)$ $1/$2.php?$3=$4&$5=$6&$7=$8
    RewriteRule ^(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/(\w+)/((\w+)-(\w+)) $1/$2.php?$3=$4&$5=$6&$7=$8
    RewriteRule ^(\w+)/(\w+)$ $1/$2.php
    Last edited by puge; 13.11.11, 08:10.

    #2
    RewriteRule ^(\w+)$ $1.php // prefixed php ex yourname.php
    RewriteRule ^(\w+)\((\w+)/(\w+)\)$ $1.php?$2=$3 //prefixed.php with $action = $get-action

    i can't detail because i dont know .. just a small idea about how it works
    This is ten percent luck, twenty percent skill
    Fifteen percent concentrated power of will
    Five percent pleasure, fifty percent pain

    And a hundred percent reason to remember the name!

    Comment

    Working...
    X