Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i developed asp.net web application project using c# code behind
how can i hide all pages name from url from users ?

please help :)

What I have tried:

hi
i developed asp.net web application project using c# code behind
how can i hide all pages name from url from users ?

please help :)
Posted
Updated 21-Sep-17 9:03am
Comments
F-ES Sitecore 22-Sep-17 4:33am    
You can't.

1 solution

Why would you want to hide page names all together? Why does that matter?

My only thoughts are to convert your application to a Single Page Application that loads everything via javascript (ex: angular framework).

Convert your page loading to just load everything via jquery. (ex: an obscene amount of .ajax calls)

Look into URL re-writing to make your URLs "pretty".

IIS url rewriting - Google Search[^]
Creating Rewrite Rules for the URL Rewrite Module | Microsoft Docs[^]
URL Rewrite : The Official Microsoft IIS Site[^]

But if your goal is to hide them all together, you'll need to convert your app to load everything from javascript/jquery ajax calls so then when they go to http://sameralkhalili.com the only URL they will ever hit is http://sameralkhalili.com and any buttons they click, or pages that get loaded are done via ajax calls that then update your HTML based on content/actions being taken.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900