Solved

renaming a url

Posted on 2010-08-17
3
343 Views
Last Modified: 2012-05-10
I have a page with a non-user friendly URL to put into printed materials...i.e. http://companydomain.com/PD/default.aspx?page=3.0.2

How can I programmatically change to a friendly URL?  Something like:

http://companydomain.com/PD

Thanks for any help!
0
Comment
Question by:-Dman100-
3 Comments
 
LVL 5

Accepted Solution

by:
ploftin earned 250 total points
ID: 33455368
To do this, you would need to include a redirector on the website that can take the short URL (http://companydomain.com/PD) and redirect them to the full URL (http://companydomain.com/PD/default.aspx?page=3.0.2).
0
 
LVL 2

Assisted Solution

by:TravisT
TravisT earned 250 total points
ID: 33455378
There are lots of options out there.  A lot of it will depend on the server type you are using.  Based upon the example URL, you will need something that works with .NET or possibly java.

Here is a great MSDN article to get you started:
http://msdn.microsoft.com/en-us/library/ms972974.aspx

Here is a free Java based URL rewrite option
http://www.tuckey.org/urlrewrite/

Here is a free IIS based URL rewrite application
http://www.iis.net/download/urlrewrite

I hope this helps.

Travis


0
 
LVL 6

Expert Comment

by:M. Rashel Ahmed
ID: 33455757
on the sub directory of companydomain.com callde 'PD', keep an index file and on that file use the following code:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://companydomain.com/PD/default.aspx?page=3.0.2"
%>

OR

you can do it in IIS as well:

-In internet services manager, right click on the file or folder you wish to redirect
-Select the radio titled "a redirection to a URL".
-Enter the redirection page
-Check "The exact url entered above" and the "A permanent redirection for this resource"
-Click on 'Apply'


enjoy!!

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question