After looking over it again, I realised I didn't really need to use the file-protocol at all – I simply get the HTML from the local file, input that into the UIWebView
using loadHTMLString: baseURL:
, and set the baseURL
to http://domain.com
. That way, the protocol used is HTTP.
This solution did involve quite some tinkering with the webView:shouldStartLoadWithRequest:navigationType:
and back/forward history changes, but it is nothing compared to trying to change the protocols.
If anyone has other solutions, I'm very interested to see them!