Skip to main content
New Member
June 25, 2024
Resuelto

Dynamic Routing

  • June 25, 2024
  • 1 respuesta
  • 485 visualizaciones

Is it possible to have dynamic routes ? 


Example: 

RouteExampleParams
/pages/blog/[slug].html/blog/a{ slug: a }
Este tema ha sido cerrado para respuestas.
Mejor respuesta de arunpatidar

Hi @ifahrentholz 

Yes, it is possible to have dynamic routes. For example:

Route Example Params
/pages/blog/[slug].html /blog/a { slug: a }

This can be implemented at the CDN level. If you are managing your own CDN, you can configure rewrite rules to map the dynamic routes to the correct paths downstream.

1 respuesta

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorRespuesta
Community Advisor
June 27, 2024

Hi @ifahrentholz 

Yes, it is possible to have dynamic routes. For example:

Route Example Params
/pages/blog/[slug].html /blog/a { slug: a }

This can be implemented at the CDN level. If you are managing your own CDN, you can configure rewrite rules to map the dynamic routes to the correct paths downstream.

Arun Patidar