regex - .htaccess redirection not working perhaps missing regular expression -



regex - .htaccess redirection not working perhaps missing regular expression -

i using next regular look in .htaccess file

rewriterule ^js_embed/([a-za-z0-9\-_]+)/[0-9]+ /users/$1/js_embed_$2.html [r=301,l]

basically trying is, redirect

/js_embed/platform/37482 /users/$1/js_embed_$2.html

however getting blank $2 value, mean expecting $2=37482

i missing in regular expression?

are missing braces around [0-9]+ ?

rewriterule ^js_embed/([a-za-z0-9\-_]+)/([0-9]+) /users/$1/js_embed_$2.html [r=301,l]

regex .htaccess

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -