[WEB4LIB] migrating to php

Thomas Dowling tdowling at ohiolink.edu
Wed Sep 6 14:01:46 EDT 2000

> For some time now we've been discussing the idea of moving our links
> collection to a database and php format for easier management by
> the reference staff.
> We've done some testing, and everything looks good. The staff is even
> excited about the web-based forms for adding and deleting links. But
> it occurs to me that this is going to mean re-naming a good portion of
> files from .html to .php. And as we all know, this breaks the first
> commandment of never renaming or moving files and/or directories.
> I see in the archives that a few of you have already added this
> (some using php, others using perl). I would be interested to know how
> handled the change from .html files to .php or .cgi.

If you're using Apache, and if you're able to maintain the other parts
of the directory and file names, you can do a RedirectMatch:

  RedirectMatch permanent /our_cool_links/(.*).html

http://www.apache.org/docs/mod/mod_alias.html#redirectmatch for details

Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu

More information about the Web4lib mailing list