Solved

renaming a url

Posted on 2010-08-17
3
340 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now