we working on website static frontend, api gateway + lambda backend, dynamodb db. saw there couple similar questions one, i'm looking understand matter throughly build complete , robust solutions, since hope build several websites using stack.
this 1 basic website: have index.html
page, blog.html
page , portfolio.html
page. have html page single portfolio entries (let's call portfolio-entry.html
) , page single blog articles (let's call blog-post.html
).
so see there's way specify index page , error page, can have nice clean url index. there rewrite rules, more redirects.
i guess best bet deliver different blog posts pass query string blog-post.html
("mywebsite.com/blog-post.html?post=post-alias") , have .js
ask api different content depending on query string.
is there way using s3 route mywebsite.com/blog/post-alias/
mywebsite.com/blog-post.html?post=post-alias
, pass response client without redirecting? i'm both interested in "client-side url rewriting" via js have nice urls humans , server-side routing catch crawler requests , have seo/indexing of pages specific posts, example.
how should go this? there way achieve using s3 , js provide or have put proxy/router (like nginx) in front of s3 handle route requests?
we committed whole s3-apigateway-lambda-dynamo architecture , love without server.
Comments
Post a Comment