Rewrite rules for s3 hosted single page application


#1

We have a single page application that consumes data from a service. The resulting URL looks like:
www.domain.com/path/?query=my-awesome-page-title

We would like the url to be prettyfied:
www.domain.com/path/my-awesome-page-title

  1. Is this possible within Cloudflare?
  2. How do I achieve this result?

#2

If your goal is to have the “prettyfied” url be displayed post click, that needs to be done on the server-side and Cloudflare can’t help.

If you just want to have a pretty URL to give people that directs to the original page, you can do that in Cloudflare pretty easily using a Page Rule to assign a redirect.

https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-perform-URL-forwarding-or-redirects-with-Cloudflare-


#3

thx Ryan