Rewrites rules disappear after a while

Add your rules on the init action and just flush on activation, when some other code flushes them they will still be present.