|
|
|
Setting Up a URL 'Name Redirect'
This procedure is for the purpose of setting up URL links with shorter, memorable (or more 'catchier') names for users to be able to remember (i.e. without all the technical characters and page id information).
For example: For marketing or media purposes, you may wish to create a URL RE-DIRECT for a page or section of your website - showing to the end user a more user friendly link name.
To do so you need to set up a re-direct file, which literally re-directs the user to the actual External/Internal Link Page - but displays the more shorter, more professional name during the link process on their screen.
Try this Exercise:
As an example we are going to set up a friendly URL for this page to send out in an email. The actual URL of this page is:
The URL that we are going to set up will be:
A brief explanation of what your URL (Universal Resource Locator) is saying:
- The first part of the address is your domain - http://www.webeduserguide.com.au
- The second part of the address is your template name, usually something like default2.asp
-
The third part of the address is the database page ID, usually something like active_page_id=108
-
With a URL Re-Direct file set up - we can make this appear less complicated to the end user in this exercise.
|
|
 |
Copy the URL of the page you want to redirect to (thus copying the whole URL will include the actual full script address from the URL)
Suppose you want to setup a re-direct for a web page you have on your website called " Training Courses" - which includes a link for a Press Release in a computer magazine - this procedure would then allow you to pass on to the user a nicer named URL without all the difficult to type and remember characters -e.g. http://www.customercommunity.com.au/webeduserguide/FriendlyURL - to be included in the press or media.
The link name then still looks friendly and relevant - without all the additional technical information.
|
|
 |
|
|
 |
Create a new file in a simple text editor of your choice - 'Notepad' / better still EditPlus - is recommended.
|
|
 |
Copy and paste the following ASP code into the new edit screen of Notepad / EditPlus
<%
'# script description
Response.Redirect "../{Script_URL}"
%>
|
|
|
|
|
 |
Replace the {Script_URL} with the actual URL
.
Do not use the whole URL, only the 'template name' and 'page ID'.
The only area you change is highlighted below where your 4 lines of code need to be the similar to the folowing:
Line 1 and 4 of this file are ASP script tags.
Line 2 is a comment and can be used to put the description of the redirect ** as long as the first character of the line is a single quote (i.e., ' is ASP comment character) **
Line 3 is where you specify the redirection. Just change the {Script_URL} part of the line with the actual script URL you derived in step 1).
|
|
 |
SAVE this file to your desktop - and name the file "default.asp"
|
New Cell |
|
|
|
 |
Create a new directory (empty folder)
in the root directory of the website that will hold the redirection file ("be used for redirection (e.g. "URL_redirect" in this example)
|
|
 |
Upload / copy the file you created in Step 3 above - i.e. file name - default.asp - to the server into the newly created directory "URL_redirect"
|
|
 |
Goodluck! Any problems - please contact us her at Customer Community Services, via. the support portal for assistance.
|
|
(Rev: 12/12/2011)
|