
Chapter 3 Managing Websites 47
Sample Aliases and Redirects
The examples below show aliases and redirects.
• Alias:
For a host named “example.com” you might want to provide a server alias named
“www.example.com.”
• Redirect:
Pattern: /images/boats.jpg
Path: http://www.apple.com
In this example, if the user enters the URL <your website>/images/boats.jpg and the
site has a folder “images” containing the file “boats.jpg,” the user’s browser will be
redirected to www.apple.com.
To create or edit aliases the site responds to:
1 In Server Admin, click Web in the list for the server you want.
2 Click Settings in the button bar.
3 In the Sites pane, double-click the site in the list.
4 In the Aliases pane, click the Add button under Web Server Aliases to create a new
aliases or select an alias and click the Edit button.
5 Type the alias you want and click OK.
6 Click Save.
You can also redirect commands for a website.
To manage aliases and redirect commands for the site:
1 In Server Admin, click Web in the list for the server you want.
Click Settings in the button bar.
In the Sites pane, double-click the site in the list.
In the Aliases pane, click the Add button under URL Aliases and Redirects to create a
new redirect or select a redirect and click the Edit button.
2 Choose the an option from the Type pop-up menu.
An alias maps from the URL term to a specific place in the file system.
An Alias Match maps a regular expression pattern for a path to a specific path in the file
system.
A Redirect maps a specific URL term to redirect to another server.
A Redirect Match maps a regular expression pattern for a path to redirect to another
server.
3 Type the pattern for the alias or redirect.
This is the pattern input from the incoming URL.
Kommentare zu diesen Handbüchern