###Secure previews of draft entries with Resource Router
-
Make a copy of
index.php
and call itpreview.php
. Add any custom config values inpreview.php
that you might like when previewing entries, such as disabling caching. -
Create a rule for Resource Router that looks something like this:
$config['resource_router'] = array( // match any url