This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This should be inserted into the server {...} block. | |
# These lines rewrite the url to access the snapshots folder, or where ever you keep | |
# you prerendered pages (mainly used when working with pages rendered by JavaScript). | |
# | |
# example.com/?_escaped_fragment_= --> example.com/snapshots/index.html | |
# example.com/?_escaped_fragment_=/blog --> example.com/snapshots/blog.html | |
# example.com/?_escaped_fragment_=/blog/post --> example.com/snapshots/blog/post.html | |
# Captures URLs with any amount of levels (?_escaped_fragment_=/.../...) |