How to Hide QueryStrings from Url

benyamin jain asked on April 27, 2016 09:58

HI all

I want know how it is possible to hide all URL query strings?

say i have a form on live site to create a new product.

when user click on create product link , system redirect him to create new product page like this :

http://kartable.domain.com/shop/manage/create.aspx?parentnodeid=55&parentculture=en-us&classid=3358

now i want to hide all query strings and only see the URL like :

http://kartable.domain.com/shop/manage/create.aspx

the latest URL is more secure than the first.

Correct Answer

Brenden Kehren answered on April 27, 2016 14:24

First and foremost you'd want to find out what their purpose is before you simply remove them.

Simply removing them isn't as easy as you might think unless you have some crazy URL rewrite in place. The simple thing is to go to the pages which have the links which produce those URLs with query string parameters in them and remove them. This will tell you in a hurry what is broken and possibly what they are used for.

Here is a good article by Kentico MVP Brian McKeiver about urls and query strings which might be useful.

0 votesVote for this answer Unmark Correct answer

Recent Answers


benyamin jain answered on April 28, 2016 12:29

thanks Brenden Kehren

i read that article before and again i read it.

i know what the query parameters do for me.i produce them by my own.

according to the article you mentioned above the only way i can have a url without query parameters rewriting them and i can have URL like

http://kartable.domain.com/shop/manage/create/{culturecode}/{parentdocumentname}/{classname}(.aspx)

i think this is the only and best way

Thank you

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.