Return to last viewed topic Go to previous topic Go to next topic
Send us documentation feedback Technical support Learning Center Print topic

URL Aliasing


Adding a Base Reference to a Template

When aliasing a Web page, you must add a reference to the base URL into the <Head> section of the template. Otherwise, any relative links on the page use the alias as the base URL.

For example, you have the file winners.gif on a Web page. The page's URL is http://www.ekexample.com/baseball/team.aspx?id=37. The alias for this page is http://www.ekexample.com/2004/worldchamps.aspx. When the page tries to find winners.gif, it looks in the /2004/ directory. The page should look in the /baseball/ directory, because that is where the file is located.

Here is the syntax used in the <Head>.

<BASE HREF="baseURL"
TARGET="WindowName"> 

Here is an example:

<HEAD> 
<BASE HREF="http://www.ekexample.com/baseball/"> 
<HEAD> 

Send us documentation feedback Technical support Learning Center Print topic Return to last viewed topic Go to previous topic Go to next topic