Global corporations fiddle this by moving money around so it appears that they don't make a corporate profit in that country, hence they pay no corporation tax. For example, companies like Vodafone continuously buy other companies that are making losses deliberately to offset their profit making mobile operators.
A simple way to solve the problem is to levy an internet sales tax, which is the same percentage as the corporation tax that these companies should have paid if they were operating solely in that country in the first place.
This would have some added advantages to companies that have bricks and mortar stores, who currently struggle to survive and compete with online competition. They provide the customers advice and the ability to try on their goods and then the customer price compares and buys cheaper online.
Whilst customers are benefiting from lower prices in the model we have today, we face the real risk that in twenty years you will only be able to buy a book from Amazon. There won't be any other book store.