How to rewrite url

Reply

Join Date: Jun 2008
Posts: 2
Reputation: Ramganesh is an unknown quantity at this point 
Solved Threads: 0
Ramganesh Ramganesh is offline Offline
Newbie Poster

How to rewrite url

 
0
  #1
Jun 7th, 2008
Hi

I wish to Rewrite Url

www.mysite.com/demo.aspx/1

instead of www.mysite.com/demo.aspx?id=1

i tried a lot with the below

http://www.qwerksoft.com/products/ii...e/download.asp

yet i got clear way

can anybody guide me or give me a new idea to do this stuff
( I wish to Rewrite Url

www.mysite.com/demo.aspx/1

instead of www.mysite.com/demo.aspx?id=1 )
by
Ram
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

Re: How to rewrite url

 
0
  #2
Jun 7th, 2008
i dont understand why you are intrested to do so, yet
www.mysite.com/demo.aspx?id=1

is quite safe method

can you explain your problem in detail may be i can help you .
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 2
Reputation: Ramganesh is an unknown quantity at this point 
Solved Threads: 0
Ramganesh Ramganesh is offline Offline
Newbie Poster

Re: How to rewrite url

 
0
  #3
Jun 7th, 2008
i just don't want to show special characters like ? & % in url (or address bar)

when we use query string we should use this special characters

how can i eliminate this characters by rewritting url or any other way
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

Re: How to rewrite url

 
0
  #4
Jun 7th, 2008
Ok i understand you can go through from this link

http://msdn.microsoft.com/en-us/library/ms972974.aspx

this contains all the neccessary information and security reason you are talking about
hope this will help you

Regards,

Farid ud din Masood
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 62
Reputation: a496761 is an unknown quantity at this point 
Solved Threads: 4
a496761 a496761 is offline Offline
Junior Poster in Training

Re: How to rewrite url

 
0
  #5
Jun 7th, 2008
I'd suggest implementing a 3rd party component. We use http://urlrewriter.net/ quite a bit and I've been very impressed with it. If you decide to go this route and end up having any issues with the setup, let us know.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: How to rewrite url

 
1
  #6
Jun 7th, 2008
It's not difficult in asp.net to use the ASP.NET built in methods to do url rewriting.

Also, if you wish to stray away from this method, just add a check at the beginning of each page.
  1. Dim idSplit = request.serverVariables("SCRIPT_NAME").split("/")
  2. Dim id = idSplit(idSplit.length - 1)
  3. Dim page = idSplit(idSplit.length - 2)
  4.  
  5. If page = "demo.aspx" And Not id Is Nothing Then
  6. 'there's a querystring.
  7. End If
This is not a very effective way, but if it is small and minimal people are using it, it can be an easy solution.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 1554 | Replies: 5
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC