|
6 Adding features to your website
6.1 Manipulating Pages
This document introduces you to the tools that enhance navigation
between the pages of your site.
6.1.1 Redirect URL
Use this feature to redirect your visitors from one web page
to another or even to a different website.
To create a redirect in a Unix-based account, do the following:
- On the control panel home page, click Web Options.
- Select the domain if you have more than one.
- On the Web Service page, scroll down to find the Redirect
option and click the Add icon next to it.
- Agree with the charges.
- On the page that appears, create the redirect rule.
Unix-based accounts
Entering http://www.examples.com/products into the Redirect
from field and http://www.examples.com?param1=yes in the to field,
will take all the http://www.examples.com/products visitors to
the http://www.examples.com?param1=yes page.
If you leave the Redirect from field empty, visitors will
be redirected from any location in the site. In the to field,
you can enter URLs with parameters, as illustrated in the screenshot
above.
Leave Redirect status as is unless you want to change the
default:
Permanent: returns a permanent redirect status (301) indicating
that the resource has moved permanently.
Temporary: returns a temporary redirect status (302). This is
the default and indicates to the client that the resource has
moved temporarily.
See other: returns a "See Other" status (303) indicating
that the resource has been replaced.
Gone: will cause a visitor's browser display "The requested
resource is no longer available on this server and there is no
forwarding address. Please remove all references to this resource."
message when trying to go to the 'to' URL.
Windows-based accounts
In Windows plans, redirect works in a slightly different
manner:
The exact URL entered above:
Redirects requests for any files in the indicated directory
to one file. For example, to redirect all requests for products.html
file to the following URL: 'www.example.net', enter www.example.net/products.html
in the To field and select this option. You can redirect requests
to URLs with parameters, for example www.examples.net/?param1=yes
*Note: you can redirect requests for files and directories
both to your own site and to any other external URL.
A directory below this one:
Redirects a parent directory to a child directory.
For example, to redirect your 'examples.net/products' directory
to a subdirectory named 'news', enter 'excample.net/products/news'
in the 'to' text box and select this option. Without this option,
the Web server will continually map the parent to itself.
A permanent redirection for this resource:
sends the following message to the client: '301 Permanent
Redirect'. Redirects are considered temporary, and the client
browser receives the following message: '302 Temporary Redirect'.
Some browsers can use the '301 Permanent Redirect' message as
the signal to permanently change a URL, such as a bookmark.
6.1.2 Directory Indexes
This tool allows you to set your own index pages instead of
those specified in the default settings. In other words, you
can tell your visitors' browsers which page to load as they hit
your domain. Usually, it's /index.html by default, but you can
set any other custom welcome page.
Example: If a visitor goes to your site http://www.example.com,
the first page to open will be http://www.example.com/index.html.
However, if you set /welcome.html as the directory index, the
page to open will be http://www.example.com/welcome.html.
Warning: your custom index pages won't add to the defaults;
they will replace them. Therefore, make sure to enter the full
list of indexes you would like to have in your configuration.
To set your custom directory indexes, do the following:
- On the control panel home page, click Web Options.
- Select the domain if you have more than one.
- On the Web Service page, scroll down to find the Directory
Indexes option and turn it on.
- Agree with the charges.
- In the box that appears, enter the names for files that will
be treated as indexes. Put file names in the descending order
of priority and separate them with spaces (e.g. index.html cgi.bin
about.html).
Skip this step if you are using a Windows-based plan.
At the top of the Web Service page, click the Apply link for
the Server configuration to change. The changes will take effect
within 15 minutes.
To edit the list you have made, click the Edit icon next to the
Directory Indexes option: with spaces (e.g. index.html cgi.bin
about.html).
If you are using a Unix-based plan, click the Apply link at
the top of the Web Service page.
6.1.3 Error Pages
Use this utility to define what will be done if a requested
page on your site is missing or fails to open for any other reason.
In order to specify your own ErrorDocuments, you need to be slightly
familiar with the server returned error codes:
Successful Client Requests Client Request Redirected
202 Accepted
300 Multiple Choices
203 Non-Authorative Information 301 Moved Permanently
204 No Content 302
Moved Temporarily
205 Reset Content 303
See Other
206 Partial Content 304
Not Modified
305 Use Proxy
Client Request Errors Client Request Errors
400 Bad Request 407
Proxy Authentication Required
401 Authorization Required 408
Request Timed Out
402 Payment Required (not used yet) 409 Conflicting
Request
403 Forbidden 410
Gone
404 Not Found 411
Content Length Required
405 Method Not Allowed 412
Precondition Failed
406 Not Acceptable (encoding) 413
Request Entity Too Long
Server Errors
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
To configure Error Pages, do the following:
- On the control panel home page, click Web Options.
- Select the domain if you have more than one.
- On the Web Service page, scroll down to find the Error option
and click the Add icon on its right.
- In the form that appears, enter the error document settings:
Message or URL: Enter the message the visitor will get or
the URL of the page that the visitor will be taken to if the
requested page is not found.
Type: Specify if the text in the previous field must be treated
as a URL (Redirect) or as a text message (Message).
Windows users will get a slightly different form:
6.1.4 HtProtect
Webshell3 "Protect" utility (available with Linux-based
accounts only) allows you to password-protect any directory on
your site so only authorized visitors can open its content with
their browsers. To start Protect, click "Webshell3"
icon on the hosting account control panel home, then "Protect"
button in the top menu to start the wizard.
Warning: Don't use this feature if you have Frontpage Extensions
installed. You would need to use Frontpage itself to perform
this function.
6.1.5 Server Side Imagemap
This feature allows your server to regard files with a specific
extension as map files. In other words, the server checks the
file with the specified extension to define the links of an image
(unlike a client-side image map, which uses the info inserted
into the HTML code) and reports back to the browser where to
go.
To add an imagemap file extension, do the following:
- On the control panel home page, click Web Options.
- Select the domain if you have more than one.
- On the Web Service page, scroll down to find the Server Side
Imagemap option and click the Add icon on its right.
- Agree with the charges.
- Enter the file extension beginning with a dot:
6.1.6 MIME Types
This utililty allows you to define file
formats that are not defined in web browsers. This enables the
browser to display or output files that are not in HTML format,
just like it displays simple text files, .gif graphics files
and PostScript files.
To add a definition for your own
file format, do the following:
- On the control panel home page, click
Web Options.
- Select the domain if you have more
than one.
- On the Web Service page, scroll down
to find the MIME Type option and click the Add icon on its right.
- Agree with the charges.
- On the page that appears, enter the
extension for this file type:
Begin file extension with a dot. The
MIME type must comply with MIME type specifications, e.g.: text/rtf
or video/mpeg.
6.2 Adding Support for Dynamic Web Content
This document explains how to add support
for dynamic web pages, including:
6.2.1 CGI Scripts
To add CGI support, it will suffice
to create a CGI alias or, in other words, to specify a CGI file
extension and a CGI handler for it, for instance Perl. For example,
you can specify that all *.cgi files must be treated as executable
Perl scripts.
To add a CGI alias, do the following:
- On the control panel home page, click
Web Options.
- Select the domain if you have more
than one.
- On the Web Service page that shows,
scroll down to find the CGI-dir option and turn it on. Now all
files in the cgi-bin directory will be treated as CGI executables.
This is the directory to place all your cgi scripts.
- On the Web Service page, scroll down
to find the CGI option and click the Add icon on its right.
- Enter an extension beginning with a
dot and select the handler from the list:
6.2.2 PHP scripts
You can add support to your own PHP
scripts. As of May 1st 2002, the highest supported version is
PHP 4.2.1.
To add PHP support, do the following:
- On the control panel home page, click
Web Options.
- Select the domain if you have more
than one.
- On the Web Service page, scroll down
to find the PHP option and turn it on.
- Agree with the charges.
Skip this step if you are using a Windows-based
plan.
- At the top of the Web Service page,
click the Apply link for the Server configuration to change.
The changes will take effect within 15 minutes.
- On the Web Service page, click the
Add icon that has appeared next to the PHP option.
- On the page that appears, enter an
extension for your PHP pages beginning with a dot, for instance
.php4. Select the MIME type from the list.
Skip this step if you are using a Windows-based
plan.
- At the top of the Web Service page,
click the Apply link for the Server configuration to change.
The changes will take effect within 15 minutes.
6.2.3 ASP
To add support for ASP (Active Server
Pages) in a Windows-based account, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the ASP option and turn it on.
Agree with the charges.
6.2.4 ASP.NET
To add support for ASP.NET in a Windows-based
account, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the ASP.NEToption and turn it on.
Agree with the charges.
6.2.5 ColdFusion
To add ColdFusion support in a Windows-based
account, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the ColdFusion option and turn it on.
Agree with the charges.
If you need to add custom file extensions
to be handled by ColdFusion, click the Add icon that has appeared
next to the PHP option:
On the page that appears, enter an extension
for your PHP pages beginning with a dot.
Note:
If your account wasn't created from the control panel, default
extensions won't be added when you enable ColdFusion.
6.2.6 Server Side Includes
You can add your own SSI aliases or,
in other words, specify SSI file name extensions. For example,
you can specify that all *.ssi files must be treated as server
side includes.
To add an SSI alias, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the SSI option and click the Add icon on its right.
Agree with the charges, if any.
In the window that appears, enter your
SSI file extension beginning with a dot:
Skip this step if you are using a Windows-based plan.
At the top of the Web Service page,
click the Apply link for the Server configuration to change.
The changes will take effect within 15 minutes.
6.3 Adding generic CGI scripts (Unix-based
accounts)
Owners of Unix accounts can use simple
CGI wizards to enhance their sites with the following scripts:
6.3.1 Counter
To add a counter to your site, do the following:
On the control panel home page, click
the Counter icon.
Enable the counter for domains in the
list.
Click the View icon for more instructions.
6.3.2 Guestbook
To add a guestbook to your site, do the following:
On the control panel home page, click
the Guestbook icon.
Enable the guestbook for domains in
the list.
Click the View icon for more instructions.
6.3.3 Formmail
To add a formmail script to your site, do the
following:
On the control panel home page, click
the Formmail icon.
Enable the formmail for domains in the
list.
Click the View icon for more instructions.
6.3.4 Chat
To add a chat to your site, do the following:
On the control panel home page, click
the Chat icon.
Enable chat for domains in the list.
Click the View icon for more instructions.
6.3.5 Forum
To add a forum to your site, do the
following:
Click the domains icon.
Go to Web Service then click on Edit.
Go to Preinstalled Scripts then click
on Edit.
Go to BBS (forum) and click the control
button to turn the forum on.
6.3.6 PhpBB Forum (both for Unix
and Windows based accounts)
Add the phpBB forum (distributed according to
phpBB License Agreement). It is a high powered, fully scalable,
and highly customisable bulletin board package. phpBB has a user-friendly
interface, simple and straightforward administration panel, and
helpful FAQ.
phpBB Key Features:
Unlimited forums and posts
Multiple language interface
Private or public forums
Powerful search utility
Private messaging system
Complete customisation with templates
phpBB files are stored in a separate
directory for each of your sites.
To add phpBB forum to your site, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the phpBB option and turn it on:
Agree with charges, if any.
Go through the installation wizard.
You'll be prompted to select from the
existing MySQL databases to use with phpBB or create a new one:
WARNING:
Assigning a previously created MySQL database to be used for
phpBB needs, you will remove contents of all its tables.
Choose or create a MySQL user to access
and manage MySQL DB you have allocated for use with phpBB.
Click the Setup icon to install the
script
You'll be taken to the phpBB admin control
panel, where you can start configuring the forum to your liking.
6.3.7 mnoGoSearch
If you are running a Unix-based account,
you can enhance your site with mnoGoSearch, a utility that searches
your site by keywords.
mnoGoSearch script file is stored in the cgi-bin directory, but
its configuration files are located in the mnoGoSearch/ directory
in your root.
To enable mnoGoSearch, do the following:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, scroll down
to find the mnoGoSearch option and turn it on:
Agree with charges, if any.
Go through the wizard.
You'll be prompted to select from the
existing MySQL databases or create a new one to be used by mnoGoSearch:
WARNING:
Assigning a previously created MySQL database to be used for
mnoGoSearch needs, you will remove contents of all its tables.
Choose or create a MySQL user to access
and manage MySQL DB you have allocated for use with mnoGoSearch.
Go to your search page by clicking the
View icon:
To make it available to the Internet
users, put a link to your mnoGoSearch page on your site's pages.
* Note: It will take some time to
index your site pages and get your search working.
You can extend your mnoGoSearch capabilities
(e.g.: set local charset) by editing file indexer.conf. To learn
how to work with indexer.conf, refer to indexer.conf-dist which
can be found in the /'account'/mnogosearch/'domain'/ directory.
* If you mishandle anything, you
can always restore mnoGoSearch configuration to the default by
clicking the Edit icon, but all your custom settings will be
lost.
6.3.8 Fixing Broken Scripts
If you have accidentally deleted any
of your CGI scripts and/or the index page (index.html), you can
restore them to default. To get rid of any undesirable changes
in you CGI scripts and go back to the default settings, delete
the unnecessary files and restore the scripts.
To fix/restore the scripts:
On the control panel home page, click
Web Options.
Select the domain if you have more than
one.
On the Web Service page, click the Restore
to default link.
6.4 FrongPage Extensions
FrontPage Extensions (FPE) are required to provide
some advanced server-side functionalities offered by Microsoft
FrontPage.
It's a good idea to install and configure
Front Page Extensions prior to uploading your web pages.
6.4.1 Installation
To install FrontPage extensions,
do the following:
On the control panel home page, click
the FrontPage icon.
Enable FrontPage Extension for domains
in the list.
Now you can proceed to FrontPage configuration.
6.4.2 Configuration
To configure FrontPage mail settings
in Unix or Windows based accounts:
On the control panel home page, click
the FrontPage icon.
Click the Edit icon in the FrontPage
section.
On the page that appears, make sure
to supply the sender and reply to e-mail addresses. They will
be used in FrontPage mail forms.
Click Submit.
You will be taken to the list of your
domains. If you are under a Unix-based plan, click Apply for
the domain you made changes to.
Now that you have applied your changes,
you can upload your web pages.
6.4.3 Fixing Problems
If, for some reason, your FrontPage
fails to perform correctly, try reinstalling FrontPage Extensions
by doing the following:
· On the control panel
home page, click the FrontPage icon.
· Click the Fix icon in the FrontPage section.
· Click the Edit icon right beside the Fix icon.
· On the page that appears, make sure to supply
the sender and reply to e-mail addresses. They will be used in
FrontPage
|
|
|
|
|
Copyright © 2007
- Faithful Host |
|