Problem with rewrite rule to redirect to the same page

RewriteRule ^Home/([^/]+)/([^/]+)/?$ /index.php?cat_id=$2 [QSA]

i have a rewrite rule as above

There’s no problem with the rewrite.

But when i use the same url say /Home/Beauty/Cosmetics/12 to redirect to the same page

like this Home/Beauty/Cosmetics/12# to run a jquery script i am not able to do.
Please help me with this
Thnx in advance

raj,

Remove the $ from the regex.

Regards,

DK