So you never wear underwear under your shorts... ? Thats kinda gross.
The solution is to not get white shorts. Anyhow you can tell easily if theyre going to be see through or not when you buy them.
You were probably running in tennis shoes instead of running with your 'human shoes' - Tennismonkey