Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

prerendercloud-iis

IIS web.config for pre-rendering JavaScript single page apps with Headless-Render-API.com (formerly named prerender.cloud from 2016 - 2022)

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. add a server variable for HTTP_X_PRERENDER_TOKEN (see screenshot below)
  6. modify web.config
    • add your Headless-Render-API.com API token
    • hardcode the protocol in the url attr of the <action type="Rewrite" /> tag to be (http or https) for your site

image

image

About

IIS Web config for pre-rendering JavaScript single page apps with https://headless-render-api.com (formerly named prerender.cloud from 2016 - 2022) for SEO and open graph tags

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors