title: How can I set up .htaccess to redirect missing pages to dev site?
body: <p>I have a couple of sites in development, which are linking to each other.</p>
  
  <p>What I'd like to do before they are launched is have any missing files on the live sites redirect to the dev sites.</p>
  
  <blockquote>
    <p><a href="http://www.example.com/test/here.html" rel="nofollow noreferrer">http://www.example.com/test/here.html</a> </p>
  </blockquote>
  
  <p>Would take you to:</p>
  
  <blockquote>
    <p><a href="http://dev.example.com/test/here.html" rel="nofollow noreferrer">http://dev.example.com/test/here.html</a>  </p>
  </blockquote>
  
  <p><a href="http://www.example.com/index.html" rel="nofollow noreferrer">http://www.example.com/index.html</a> would still serve the file from the main site (www), since index.html exists.</p>
  
  <p>Edit: I know it's not the best practice way to do things, but it's a request from the client that links they have to new pages on the live site (which have not been transferred across from dev) will work.</p>