How to Preserve Internal Links in AI Content Rewrites