title: 301 redirect a single page in Gatsby
body: <p>I installed the npm package &quot;gatsby-plugin-htaccess&quot; and added it to the gatsby-config.js, it worked fine and gave me a .htaccess file that tidies up the url when I publish the build.</p>
  <p>Now, I want to permanently 301  redirect some pages so I get the following result;
  <a href="https://example.com/old-page/" rel="nofollow noreferrer">https://example.com/old-page/</a> redirects to <a href="https://example.com/new-page/" rel="nofollow noreferrer">https://example.com/new-page/</a></p>
  <p>What is the syntax for &quot;gatsby-plugin-htaccess&quot; or &quot;gatsby-plugin-htaccess-redirects&quot; to get this to work?</p>
  <p>I’ve tried following the documentation but there isn’t much of it -
  <a href="https://www.npmjs.com/package/gatsby-plugin-htaccess-redirects" rel="nofollow noreferrer">https://www.npmjs.com/package/gatsby-plugin-htaccess-redirects</a></p>
  <p>gatsby-plugin-htaccess seems to allow redirects but it also says they are not automatically integrated and recommend using gatsby-plugin-htaccess-redirects -
  <a href="https://www.npmjs.com/package/gatsby-plugin-htaccess" rel="nofollow noreferrer">https://www.npmjs.com/package/gatsby-plugin-htaccess</a></p>