I have this rewrite rule:
RewriteRule ^/([0-9])+$ http://<domain>/$1/ [L]
And when I got to the site and type:
http://<domain>/596
I am expecting it to redirect me to
http://<domain>/596/
However, it is redirecting me to:
http://<domain>/6/
What am I doing wrong here?
Thanks! 🙂
Eric
The + needs to go inside the brackets.
Otherwise what you are saying is I want one or more matches for a digit, rather than I want a single match with 1 or more digits.