Declaration:
<? class FDLocationRewriter1 implements LocationRewriter ?>
Description: This is a sample LocationRewriter implementation that will rewrite the URLs of the Locations using the base64 recode functions, so that un URL like http://localhost:80/index.php5?action=FDWelcome will be rewritten to http://localhost:80/YWN0aW9uPUZEV2VsY29tZQ==. To enable this rewriter, you'll have to modify the .htaccess or httpd.conf file and add this line: ErrorDocument 404 /error.php5. This will redirect all erroneous requests to a special wrapper launcher (error.php5, you can find it in the resources folder of this package. It has to be placed in the same directory where you placed the index.php5, Freeform loader file). Then open the .config file of the freeform package (located at {FREEFORM_HOME_DIR}/packages/freeform) and add this line: locationRewriter=FDLocationRewriter1. To disable the rewriter, simply undo the above changes. Note: if you employ this rewriter, please see the comments in the error.php5 file to learn about possible modes of using that file and about possible side-effects of such use. Also note that this rewriter cannot be used with GET forms as there is no way to force the user agent to rewrite the query string. Either you will have to provide a way of detecting whether the submitted URL is not encrypted or you should not use the GET forms with this rewriter. Implemented Interfaces: LocationRewriter See also: Authors:
Methods:
|
|