Forum Moderators: phranque
RewriteRule ^image/([0-9]+)/([a-zA-Z0-9_-]+).([a-zA-Z]+) previews/image/$1/$2.$3
i tried (.*) but this does not help
an example where this rule would fail will be image-n.10.jpg
can any one help me with this?
Allowing the second group to match a period, along with escaping the hyphen (simply to make this more robust across Apache/mod_rewrite/regex-library versions), should fix your problem:
RewriteRule ^image/([0-9]+)/([a-zA-Z0-[b]9._\-][/b]+).([a-zA-Z]+)$ previews/image/$1/$2.$3 [L]