SMF Pretty URL rewrite rule problem.

Rob Schultz rschultz7 at gmail.com
Sat Sep 26 02:31:40 MSD 2009


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

Sent from my iPhone

On Sep 25, 2009, at 4:55 PM, Grzegorz Sienko <staff at krecio.pl> wrote:

> Hello.
>
> 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 [L,QSA]
> RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php? 
> pretty;board=$1.$2 [L,QSA]
>                                                  |
>                                                 \/
> rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/[0-9]?/?$ /index.php?pretty 
> %3Bboard=$1.0 last;
> rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/[0-9]?/?$ /index.php? 
> pretty%3Bboard=$1.$2 last;
>
> The problem start here, .htaccess rewrite rule:
>
> RewriteRule ^profile/([^/]+)/?$ ./index.php? 
> pretty;action=profile;user=$1 [L,QSA]
>                                                  |
>                                                 \/
> rewrite ^/profile/([^/]+)/?$ /index.php?pretty;action=profile;user= 
> $1 last;
>
> 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?
>
> -- 
>  Best Regards
> Grzegorz Sieńko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090925/7221b60a/attachment.html>


More information about the nginx mailing list