SMF Pretty URL rewrite rule problem


I have a little problem with rewite rule for Pretty URL Mod for SMF.

first part is easy:

RewriteRule ^([-!~*’()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0
RewriteRule ^([-
./index.php?pretty;board=$1.$2 [L,QSA]
rewrite ^/([-!~*’()$a-zA-Z0-9]+)/[0-9]?/?$
rewrite ^/([-
/index.php?pretty%3Bboard=$1.$2 last;

The problem start here, .htaccess rewrite rule:

RewriteRule ^profile/([^/]+)/?$
rewrite ^/profile/([^/]+)/?$ /index.php?pretty;action=profile;user=$1

but this give me error while testing configuration:

unknown directive “action=profile” in /usr/local/nginx/conf/site:67

Any idea? Anyone can help me with that one?

Might try “/index.php?pretty;action=profile;user=$1” last; since ;
denotes end of configure line.

Sent from my iPhone