I’ve got username working just fine, but I have a “show more posts” button which goes to profile.php?name=$username&l=$limit + 10 So I need to rewrite that one as well.
Here is my rewrite for the /a/Username thingy:
RewriteRule ^a/([^/]+)$ profile.php?name=$1
Can anyone do anything like this where it’s more like ?name=$1&l=$2 and then go /a/$1/p/$2 ?
Firstly I don’t think you’re example is particularly safe, as ([^/]) matches exeverything except ‘/’. There are other characters you’ll want to ignore as well as they are non URL safe, so it’s best to write the rule with the characters you want