user3441637
user3441637

Reputation: 11

How to remove query string or how to maintain constant URL using URL rewrite

How to maintain constant URL?
For example:

http:// test23232 /temp/temp.aspx?a=1&b=1

a,b,query string parameter name get differ dynamically page to page(want to use those parameter but not dispaly for users)

While redirecting ,whatever the value present after ? should be removed and final URL displayed to users:

http:// test23232 /temp/temp.aspx or  http:// test23232 /temp

Or any constant url post login mentioned throughout entire application.

I can acheive this by iframe, but how can I do by doing web.config through rule or global ascx. or

whatever page redirect

http : //localhost /test/security / login.aspx http : //localhost /test/security / main.aspx
http : //localhost /test/security / details.aspx

I want to show to browser as

http :// localhost / reap/ security /

Is it possible?

Upvotes: 1

Views: 650

Answers (2)

Nagama Inamdar
Nagama Inamdar

Reputation: 2857

You can send the necessary parameter using post method instead of get method. More secure way of passing them is to store them into session variable.

that might make it more "secure" since then the client cannot change the variables by editing the source.

It will depends on how you really want to do.

The session parameters will keep on changing dynamically for every request.We can go for cookies.

Yet this link might be useful for url rewriting

Upvotes: 1

Tapas Mahata
Tapas Mahata

Reputation: 351

Use Session to store the values of a and b and keep the url simple.

Upvotes: 1

Related Questions