title: HTaccess dynamic URL to static rewrite that works both ways without loop
body: <p>I have looked through stack overflow and can't find the exact answer I am looking for so here goes.</p>
  
  <p>I have a URL 
  <a href="http://holtplantandmachinery.co.uk/cat/wheel-loaders" rel="nofollow">http://holtplantandmachinery.co.uk/cat/wheel-loaders</a> which redirects to <a href="http://holtplantandmachinery.co.uk/category.php?name=wheel-loaders" rel="nofollow">http://holtplantandmachinery.co.uk/category.php?name=wheel-loaders</a> </p>
  
  <p>However I need it to work the other way around when you enter the dynamic URL it rewrites to the static (folder looking) URL above and vice versa. Essentially whatever one is called it should rewrite to the static one. Now I know I need to setup a rewrite that works the opposite way to the one above and then have a condition to stop an infinite loop but I can't seem to get anything to work please help.</p>