Blog CFC Alias Rewrite

23 July 2004 12:14

If you’re using version 3.5 of the Blog CFC you can get Apache to create some nice URL to access posts which you’ve created aliases for.

Create a .htaccess file in you root directory and pop in it the following:

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/go/([0-9]*)
RewriteRule ^(.*) /index.cfm?mode=alias&alias=%1 [L]

You can try it if you like.

Filed: Technology

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a comment or leave a trackback from your own site.

Leave a Reply

 
What's ianteresting?   •   Twitter   •   About   •   Contact
©2012 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset