It almost never happens. Trucks of that size are bought and work out their lives on a specific mine site. To move a 797 (depending on local highway regulations/restrictions) in a worst-case scenario even the body might have to be cut apart to transport it. The chassis would also need a lot of disassembly (a minimum of tyres, the rear axle, front struts, cab, fuel & hyd tanks just for a start).
Considering the level of disassembly required, craneage, transport costs, & labour I would be surprised if a 797 could be moved 500 miles for much less than $1 million.
Something like a 775 would be far easier. It would probably fit complete on a lowboy with only the inside rear tyres removed beforehand and then the fronts removed to get the height of the dump body canopy down once the truck was on board the lowboy. As regards what that would cost, no idea.
EDIT: When we moved 797s we used to drive them..... This particular route was about 130km from the mine to our shop.