IIS web.config file for prerendering javascript-rendered pages with https://www.prerender.cloud for isomorphic/universal server side rendering
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Oct 9, 2017
README.md First Oct 9, 2017
web.config First Oct 9, 2017

README.md

image

prerendercloud-iis

IIS web.config for https://www.prerender.cloud/ for prerendering (server-side rendering) webpages.

Usage

It's possible your IIS server may already have steps 1 and 2 and 4 mostly done already - in which case, just go to step 5.

  1. use the Web Platform Installer to install "URL Rewrite" (see more here if having problems)
  2. use the Web Platform Installer to install "Application Request Routing"
  3. restart IIS entirely
  4. create a file (if it doesn't already exist) named web.config and put it in the root of the directory serving your website
  5. modify web.config
    • add your prerender.cloud API token
    • hardcode the protocol in the url attr of the <action type="Rewrite" /> tag to be (http or https) for your site

image

Inspired from https://gist.github.com/blowsie/04c183c62a432f6450c9