Solved

renaming a url

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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