GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

VPS v2: redirect: Allow Jumping Between Pages

bullet Introduction

One simple way to allow visitors to easily jump from one section of your web site to another is by using a redirect script. We have created a form and simple CGI to facilitate such a task. The redirect form and CGI source are presented below.

 

bullet Installation

To install the redirect CGI on your Virtual Private Server you will need to do the following:

  1. Install the Redirect Form

    You will need to download the Redirect Form HTML source and store it in the appropriate www directory. This form can be customized for your server by simply changing the URLs and Titles to the URLs and Titles that correspond to specific documents on your web site. But be sure that the variable name for each input field is not altered.

    The form can be modified to automatically redirect when a user has selected an option (assuming the user has a JavaScript capable browser). This is done by adding a little JavaScript to one line in the form. Find this line:

    <select name="url">

    Modify the line so it looks like this:

    <select name="url" onChange="submit(); return true">
  2. Copy the redirect directory

    As the root user, copy the redirect directory from the /usr/local/share/contrib/ directory on your VPS v2 to the appropriate cgi-bin for the domain that will be using the script. Make sure to change the file ownership to the correct user.


Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.