Quote:
Originally Posted by FBChris
Code:
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
|
Why not
Code:
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2 [QSA]
RewriteRule ^content/(.*) content.php?r=$1 [QSA]
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1 [QSA]
as it is used in the lines before? [QSA] does just that - it appends the existing Query String.
Quote:
Originally Posted by FBChris
Code:
RewriteRule ^$ $1.php?r=$2 [QSA]
|
This line can't work - $1 and $2 are references to bracketed expressions - but there are none...
The original line for Apache 2 is
Code:
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
and can be "translated" to
Code:
RewriteRule ^((.*?)(/|$))(.*|$)$ $2.php?r=$4 [QSA]
which is equivalent.
Cheers,
Jan