If I try wget it downloads the resolved page. But I want to download the original script. Is this possible?
wget
No this is not possible, and would be a huge security issue if it was.
The only way this would be possible is if the web server (Apache) was not configured correctly