Migrate LinkFreeze (IIS6) to mod_linkfreeze (IIS7.5)

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 8
Joined: 03 Oct 2012, 08:35

Migrate LinkFreeze (IIS6) to mod_linkfreeze (IIS7.5)

03 Oct 2012, 08:46

Hi,

I had this LinkFreeze config file:

Code: Select all
LogRewrite=False
NotifyOrder=MEDIUM
/      ---   .cfm      [MoveExt]


And also had the advanced option "Transform links on pages" checked.

I am able to display the .htm pages (CFM) just fine... did all the CF modifications but the problem is that mod_rewrite is not transforming my links (Example: page.cfm?var1=value1) in to the htm pages (page-var1-value1.htm)

The config I have to mod_rewrite is:

Code: Select all
LinkFreezeEngine on
LinkFreezeRule --- "cfm=htm" [ NoSort, MoveExt ]


And here's my httpd.conf

Code: Select all
# Helicon Ape version 3.0.0.76

# Helicon Ape core configuration

#Automatically generated license file
Include licenses.conf

##----------------------------------------------------------------------
##
## The following code enables most detailed logging for Ape
##

Loglevel debug
ErrorLog error.log

#force Ape to ignore syntax errors in config
#Options -StopOnError

##----------------------------------------------------------------------
##
## Read more about supported modules here http://www.helicontech.com/ape/doc/overview.htm
##

#LoadModule authz_host_module     modules/mod_authz_host.so
#LoadModule auth_basic_module    modules/mod_auth_basic.so
#LoadModule auth_digest_module   modules/mod_auth_digest.so
#LoadModule authn_dbd_module     modules/mod_authn_dbd.so
#LoadModule authn_file_module    modules/mod_authn_file.so
#LoadModule authn_anon_module    modules/mod_authn_anon.so
#LoadModule authn_default_module modules/mod_authn_default.so
#LoadModule authz_user_module    modules/mod_authz_user.so
#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
#LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule asis_module      modules/mod_asis.so
#LoadModule cache_module          modules/mod_cache.so
#LoadModule dbd_module      modules/mod_dbd.so
#LoadModule dbd_exec_module   modules/mod_dbd_exec.so
#LoadModule dir_module        modules/mod_dir.so
#LoadModule disk_cache_module    modules/mod_mem_cache.so
#LoadModule developer_module       modules/mod_developer.so
#LoadModule env_module           modules/mod_env.so
#LoadModule expires_module       modules/mod_expires.so
#LoadModule filter_module    modules/mod_filter.so
#LoadModule gzip_module           modules/mod_gzip.so
#LoadModule headers_module       modules/mod_headers.so
#LoadModule hotlink_module   modules/mod_hotlink.so
LoadModule linkfreeze_module   modules/mod_linkfreeze.so
#LoadModule log_config_module   modules/mod_log_config.so
#LoadModule logio_module      modules/mod_logio.so
#LoadModule mem_cache_module   modules/mod_mem_cache.so
#LoadModule mime_module      modules/mod_mime.so
#LoadModule proxy_module         modules/mod_proxy.so
LoadModule rewrite_module       modules/mod_rewrite.so
#LoadModule replace_module      modules/mod_replace.so
#LoadModule usertrack_module   modules/mod_usertrack.so
#LoadModule setenvif_module      modules/mod_setenvif.so
#LoadModule speling_module       modules/mod_speling.so
#LoadModule seo_module       modules/mod_seo.so
#LoadModule xsendfile_module       modules/mod_xsendfile.so



##----------------------------------------------------------------------
##
## The following code enables most detailed logging for mod_rewrite
##

#RewriteLog rewrite.log
#RewriteLogLevel 9


##----------------------------------------------------------------------
##
## The following code hides .htaccess and .htpasswd files from sites visitors.
##

#
#<FilesMatch "^\.ht">
#    Order allow,deny
#    Deny from all
#    Satisfy All
#</FilesMatch>


##----------------------------------------------------------------------
##
## Use htaccess.txt instead of .htaccess
## put it in the httpd.conf
##
#AccessFileName htaccess.txt


##----------------------------------------------------------------------
##
## Basic Authentication for the folder
##

#<Directory c:\inetpub\wwwroot\admin\>
#   AuthType Basic
#   AuthName "secret area"
#   AuthBasicProvider file
#   AuthUserFile c:\inetpub\.htpasswds
#   Require valid-user
#</Directory>

##----------------------------------------------------------------------
##
## MD5 Digest Authentication
##

#<Location /private/>
#   AuthType Digest
#   AuthName "private area"
#   AuthDigestDomain /private/ http://www.domain.com/myprivate/
#   AuthDigestProvider file
#   AuthUserFile c:/inetpub/passwords/.digest_pwd
#   Require valid-user
#</Location>


##----------------------------------------------------------------------
##
## Enable memory-based cache for php files
##

#<Files *.php>
#   ExpiresActive On
#   ExpiresByType text/html "access 1 hour"
#   CacheEnable mem
#</Files>


##----------------------------------------------------------------------
##
## Force Ape account for trailing slash redirects and index files
##

#DirectoryIndex index.html index.asp index.php
#DirectorySlash On


##----------------------------------------------------------------------
##
## Cache all cacheable content to the disk
##

## please create this folder before using
#CacheRoot c:\inetpub\cache
#SetEnv cache-enable disk

##----------------------------------------------------------------------
##
## Prevent ddos attacks
##

#<IfModule evasive_module>
#   DOSPageCount        10
#   DOSSiteCount        150
#   DOSPageInterval     1
#   DOSSiteInterval     1
#   DOSBlockingPeriod   10
#</IfModule>



##----------------------------------------------------------------------
##
## Enable smart expiration
##

#ExpiresActive On
## html expires in a 2 hour
#ExpiresByType text/html A7200
## css expires in a 4 hour
#ExpiresByType text/css A14400



##----------------------------------------------------------------------
##
## The following code enables caching and compression for all static files
## accounting for browser peculiarities
##

#Include smart_gzip_compression.conf


##----------------------------------------------------------------------
##
## Stop hotlinking
##

#SetEnv mod_hotlink
#<Files *.pdf>
#   HotlinkProtect /pdf [ Link, ParamName=hlb ]
#</Files>


#----------------------------------------------------------------------
##
## Enable Linkfreeze
##

#SetEnv mod_linkfreeze
#LinkFreezeRule --- "aspx=htm" [ AbsLinks,MoveExt ]


##----------------------------------------------------------------------
##
## Enable cache in-memmory
##

#<LocationMatch "/|/index.php">
#   SetEnv cache-enable mem
#</LocationMatch>



##----------------------------------------------------------------------
##
## Enable proxying /accounts/ application to internal server
##

#<Location /accounts/>
#   ProxyPass http://internal.company.com/accounts/
#   ProxyPassReverse http://internal.company.com/accounts/
#   ProxyPassReverseCookieDomain internal.company.com www.company.com
#</Location>


##----------------------------------------------------------------------
##
## Common rule for cms systems
##

#RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) /index.php [NC,L,NS]

##----------------------------------------------------------------------
##
#Header append Server "enhanced by Helicon Ape/3.0"


Please let me know what I need to do to have mod_rewrite transform my .cfm links in to .htm

Thanks

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Migrate LinkFreeze (IIS6) to mod_linkfreeze (IIS7.5)

04 Oct 2012, 04:23

Hello,

First, uncomment the following line in your httpd.conf:

#LoadModule env_module modules/mod_env.so


And try to put the following code into .htaccess

SetEnv mod_linkfreeze
LinkFreezeRule --- "cfm=htm" [ NoSort, MoveExt ]

User avatar
Posts: 24
Joined: 27 Nov 2012, 21:57

Re: Migrate LinkFreeze (IIS6) to mod_linkfreeze (IIS7.5)

27 Nov 2012, 22:37

I will try this step and see what happens.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 2 guests