Wares >SWISH ] [ Simple Search ] [ Trunk Calc ]

Favorites for the Web

Edited on January 1st, 1970, 00:00 UT.

This program reads the target location of a Windows Internet Shortcut File and issues a redirect to that location. This would allow you to share the contents of your Windows Favorites Folder on your web server simply by uploading the shortcut files. Using the server's Directory Index, or my Indexer script, you can automatically generate a complete Favorites page.

Compressed Source Code
winurl.c
Example Usage: Combining Favorites for the Web and the Recursive Directory Indexer
Dave's Web Design Reference Material
Installation
  1. Uncompress winurl.c.gz (gunzip winurl.c.gz)
  2. Compile winurl.c (gcc -o winurl.cgi winurl.c)
  3. Copy to your cgi-bin (cp winurl.cgi ~/public_html/cgi-bin)
  4. Configure your server, according to its manual, to automatically redirect .url files to the winurl.cgi location. (CGI filter et al)
Automatic Redirect on Apache
  1. Follow above Installation instructions
  2. Create an access control file (.htaccess) in your web root, if you haven't already (touch ~/public_html/.htaccess)
  3. Add the following lines to the Apache access control file:
    AddType application/x-win32-url .url
    Action application/x-win32-url /cgi-bin/winurl.cgi