And in the blog’s repo I created a new directory called ‘blog’ and moved all the existing files and directories inside the ‘blog’ directory [so for instance the most basic file path is repo-name/blog/.editorconfig]
However when I go on customdomain.com/blog it’s not finding the page The blog site and the existing website are both on Gitlab and deployed on the same Netlify account. They’re both Gatsby sites and the blog is just the basic Casper theme starter if that helps. Any troubleshooting pointers or things to check?
(I’m generally new so could be making a really noob mistake too fwiw)
Hi @ak9, it’s hard to say exactly why it’s not working without knowing which site it is but I think perhaps your _redirects file was not included in your public/ (build) folder during deploy. Did you make sure to put the _redirects file in the static/ folder or if not, did you make sure to copy the file to public/ during your build process?
I added it to what I think is the root directory (Screenshot attached). The static directory only has a further subdirectory called ‘images’ which has a single image
Counterproposal: You can send us the API ID publicly (from the site’s general settings page). This ensures that whomever on our team is next available (Luke for instance did not work today) can check things out.
But, you may not need to - that _redirects file is not in your publish or static directory, so it definitely won’t work. Please follow Dennis’ advice about where it should live:
Did you make sure to put the _redirects file in the static/ folder or if not, did you make sure to copy the file to public/ during your build process?
Thanks dennis, luke, and fool The redirect is now working
That being said, the blog site is still not deploying from the blog subdirectory. It’s a gatsby site so I added pathPrefix: /blog, to the gatsby-config.js file, and used the following build command: gatsby build --prefix-paths on Netlify. Am I missing something else?
49a4cfbf-fd97-4450-80a0-71e2fcc91717 is the site’s API ID fyi