• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 167
  • Last Modified:

Hide .asp extension in URL

I have secured classic asp web application and I want
instead of having a link format of:
https://secure.jsssoftware.com/sign_on_HP.asp?uid=<UserName>&uidhash=<EncryptedUserName>&cid=<YourCustomerId>

I want to display, URL format like:

Option 1 hide the .asp extension
https://secure.jsssoftware.com/sign_on_HP/<UserName>&uidhash=<EncryptedUserName>&cid=<YourCustomerId>

or Option 2 replace generic word
https://secure.jsssoftware.com/PartnerMemberSSO/uid=<UserName>&uidhash=<EncryptedUserName>&cid=<YourCustomerId>

or Option 3 replace .aspx in place of .asp
https://secure.jsssoftware.com/sign_on_HP.aspx/<UserName>&uidhash=<EncryptedUserName>&cid=<YourCustomerId>
0
Vivek Agarwal
Asked:
Vivek Agarwal
  • 5
2 Solutions
 
Ryan ChongCommented:
have you heard about "iis rewrite" before?

you can implement option 1 & 2 easily using it.

https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

option 3 may create more work for you and it may not securely hire our URL. that's not much difference between asp and aspx in terms of URL...
0
 
Ryan ChongCommented:
correction:

option 3 may create more work for you and it may not securely hide our URL. that's not much difference between asp and aspx in terms of URL...
0
 
Vivek AgarwalConsultantAuthor Commented:
if we do "iis rewrite" then it will applicable universally and rewrite links for all clients but we just wanted rewrite link show to only new client links. we don't want same page rewrite for old clients.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
Ryan ChongCommented:
rewrite link show to only new client links. we don't want same page rewrite for old clients.
it still can be done if the URL can be differentiated between new and old client... and how many new client are you mentioning here? one?
0
 
Ryan ChongCommented:
so any further inputs here?
0
 
Ryan ChongCommented:
as proposed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now