ImageAlias
Request that Interchange rewrites any old image directories with a new value.
Synopsis
Scope
This directive is only available for use in the local
(catalog.cfg) configuration file.
It will not affect any other website in any way.
This directive will not work in the global
(interchange.cfg) configuration file.
Description
This directive specifies an alias for the base images location,
which is set by ImageDir and related directives.
It is similar to the "Alias" feature of Web servers,
such as Apache.
If the "olddir" is specified in an "<img src="...">" HTML tag than the "olddir" will be replaced with the directory
specified as the "newdir".
The same rewrite is performed on the "<body>" tag's
"background" parameter, and on any "background" parameter
specified in a "<table>" tag or sub-tag
("<tr>", "<th>" and
"<td>").
This could possibly be useful if you want to move an image directory
to a new location.
I suggest that you use a symlink, if the change is to be transitory,
or edit the HTML if the change will be permanent.
|
Warning
The olddir and newdir must each have a trailing slash
("/") if unexpected substitutions are to be avoided.
|
Example
A simple alias
|
ImageAlias /images/ /decor/images/
|
The above will have the following rewrite effect on your HTML:
<img src="/images/foo.gif">
|
<img src="/decor/images/foo.gif">
|