Solved

renaming a url

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Asp.Net Session Question 2 33
Securing WEBAPI on Azure 2 21
Header Font Size in Grid View 6 23
Set the FileVersion of a website dll 1 20
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

735 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