get use_rewrites/use_secure from config - fixes #357