Overview   Sales Line   Live Chat   FAQ   Telephone   Help Desk   Contact Us   Manual 
 
DOCUMENTATIONS
 Documentations Part 6 - Adding features to your website
 Manipulating Pages
      Redirect URL
      Directory Indexes
      Error Pages
      HtProtect
      Server Side Imagemap
      MIME Types
 Adding Support for Dynamic Web Content
      CGI Scripts
      PHP scripts
      Server Side Includes
 Adding generic CGI scripts (Unix-based accounts)
      Counter
      Guestbook
      Formmail
      Chat
      Forum
      PhpBB Forum (both for Unix and Windows based accounts)
      mnoGoSearch
      Fixing Broken Scripts
 FrongPage Extensions
      Installation
      Configuration
      Fixing Problems


   Manipulating Pages


This document introduces you to the tools that enhance navigation between the pages of your site.

Back to top  

    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.

Back to top  

    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.

Back to top  

    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:

Back to top  

    HtProtect

htProtect utility allows you to password-protect any directory on your site so only authorized visitors can open its content with their browsers.
To start htProtect, click the WebProtect icon on your home page.

Warning: Don't use this feature if you have Frontpage Extensions installed. You would need to use Frontpage itself to perform this function.

Back to top  

    Server Side Imagemaps

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:
Back to top  

    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.

Back to top  

   Adding Support for Dynamic Web Content


This document explains how to add support for dynamic web pages, including:



Back to top  

    CGI Scripts

CGI scripts are currently supported, please upload your cgi files to the cgi-bin and make sure your permissions are set properly, generally 755.

Back to top  

    PHP scripts

PHP is fully supported, however if you need a particular PHP module installed please contact us through the help center and let us know, we will install the module as long as its not a security issue.

 

Back to top  

    ASP

We No long support ASP

Back to top  

    ASP.NET

We no longer support ASP

Back to top  

    ColdFusion

Cold Fusion is not supported currently, however support can be added on special request.

Back to top  

    Server Side Includes
SSI is currently supported.

 

 


Back to top  

   Adding generic CGI scripts (Unix-based accounts)


Owners of Unix accounts can use simple CGI wizards to enhance their sites with the following scripts:

Back to top  

    Counter

To add a counter to your site, do the following:

  • In the cgi-bin, you will find a group of standard cgi files for your convience, simply open the file and follow the instructions on configuration.
Back to top  

    Guestbook

To add a guestbook to your site, do the following:

  • Please go to our user software reposatory.
Back to top  

    Formmail

To add a formmail script to your site, do the following:

  • Please see the software reposatory.
Back to top  

    Chat

To add a chat to your site, do the following:

  • Please see the software reposatory
Back to top  

    Forum

To add a forum to your site, do the following:

  • Please see the software reposatory
Back to top  

    PhpBB Forum

Please see the software reposatory

Back to top  


    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.

Back to top  

    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.
Back to top  

   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.

Back to top  

    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.
  • Agree with the charges.
  • Now you can proceed to FrontPage configuration.
Back to top  

    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.
Back to top  

    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

Back to top