Solved

renaming a url

Posted on 2010-08-17
3
347 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-
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

695 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