i have a rule like this:
RewriteRule ^posts/(.*)/([0-9]*)$ viewupdates.php?username=$1&page=$2 [L]
and match to: http://site.com/posts/username/1
i need to chante to:
http://site.com/username/posts
without trailing slash, and if have more pages /posts/1
Simply transpose the corresponding parts of the regexp for the latter case:
Probably, you also want another rule without the extra “page” specification (for the former case you describe), smth like this:
or
depending on your implementation of the script.