You are here: Administrators Reference > Site Administration > Static Content Generation > Miscellaneous > Custom Redirects

 

Custom Redirects

It is possible to code your own “Redirect” files (the static files placed in the static directory for files that are dynamic). You may want to write your own redirect file if:

To create a custom redirect file, simply place a redirect-custom.cfm file in the root of your site.  You will have the following attributes variables available to your custom redirect:

Your redirect-custom.cfm module will be called when any page is updated or its static state changes, causing the static redirect file to need updating.  Your module will be called via <CFMODULE> and it should output the HTML you wish to be stored in the redirect file. 

For example, the default redirect module does the following:

 

<CFOUTPUT><head><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-store"><meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT">

</head>

<body><br/>If this page does not automatically refresh, please click

<a href="#attributes.dynamicurl#?redirected=1" name="rLink">here</a>.<br />

 

<script type="text/javascript">

<!--

rUrl = "#attributes.dynamicURL#"; <!--- //IE & NS Compatible---->

// -->

</script>

<script src="/commonspot/static_redirect.js" type="text/javascript"></script>

</body></html>

</CFOUTPUT>

 

Related Links


You can download PDF versions of the Content Contributor's, Administrator's, and Elements Reference documents from the support section of paperthin.com (requires login).


For technical support:

http://www.paperthin.com/support/