Welcome to WebmasterWorld Guest from 188.8.131.52
Can I block the RAW Url on robots.txt. Is this safe?
Then 301-redirect any direct client requests only from the "raw" to the friendly URLs. I emphasized that phrase because it's important: You'll need to look at the client HTTP request server variable to be able to distiguish between a raw URL request received from a client (browser or 'bot) and a raw URL request resulting from your existing raw-to-friendly-URL internal rewrite.
But first, make sure you have no links on your site to these raw URLs, and try to get any such links from other Web sites that link to your site corrected before proceeding.