Menu
How to create a short URL on your DNN website
Last Post 5/11/2011 11:03 PM by Deleted User. 0 Replies.
Sort:
PrevPrev NextNext
Author Messages
Deleted User
New Member
New Member
Posts:62


--
5/11/2011 11:03 PM  Quote  Reply  
How to create a short URL on your website
For example, you want http://ihom.org/jsm to go to http://ihom.org/GETINVOLV...bid/440/Default.aspx
Here is how to do it:
Create a folder in the root folder of the site (httpdocs)
Name the folder with the last part of the desired, short URL name that you want.
Open notepad and paste in the code below
Change the location to match your long URL
Change the contents of the <p> tag
Save this file as default.asp
Copy it to the new folder you created.
Done
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm...ml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>You have reached Job Search Mini</title>
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://ihom.org/GETINVOLV...bid/440/Default.aspx"
%>
</head>
<body>
<p>You have reached Job Search Ministry</p>
</body>
</html>
Add Reply

Quick Reply
toggle
Username:
Subject:
Body:
Security Code:
CAPTCHA image
Enter the code shown above in the box below.