ifiokjr / gatsby-plugin-next-seo

Gatsby Plugin Next SEO is a plug in that makes managing your SEO easier in Gatsby projects.
MIT License
195 stars 20 forks source link

error 404 and configuration of gatsby seo plugin #84

Open manang opened 1 year ago

manang commented 1 year ago

Hi, I'm trying to use this plugin within my project. Every singlepage webapplication generates an error 404 before landing on the right page. I solved this configuring apache2 to redirect the connection, if the error 404 occurs. The problem is that the url of this page is dynamic and I need to fill the template of gatsby seo accordingly to this. for example, before the redirect, my url is https://website/page/dynamic-parameters. After, the connection is redirec to to https://website/page how can I manage this with gatsby seo? in the head the parameters are not modifiable, and the locator variable is euqual to https://website/page and not to https://website/page/dynamic-parameters. (https://stackoverflow.com/questions/52051090/gatsbyjs-client-only-paths-goes-to-404-page-when-the-url-is-directly-accessed-in)

Thanks a lot for your help Angelo