For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

ImageAlias

Request that Interchange rewrites any old image directories with a new value.

Synopsis

ImageAlias  olddir  newdir

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.

Note

Note

This directive operates after ImageDir, and is not affected by the no_image_rewrite pragma.

Warning

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: 

Found in HTML source

<img src="/images/foo.gif">
Rewritten HTML output

<img src="/decor/images/foo.gif">

Category:  Local config directives
Last modified by: Kevin Walsh
Modification date: Wednesday 23 August 2006 at 9:33 AM (EDT)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us