I'm not sure what you trying to accomplish, but the web browser has to know what URL to load - so you can rewrite it any way you want, but that URL would still have to send back the file / content requested. So if you are trying to prevent sharing a URL or something like that, this method wouldn't work very well.
-Jim