How to hide real URL using asp.net?

lidude56910

New member
There's a folder "Folder1" and a page "page1.aspx". So when i browse my website it's like this: www.website.com/Folder1/page1.aspx but i want to be like this: www.website.com/Blah

How can i do this? I use asp.net 2008/2010.
I already used this code in web.config but when i debug the project in localhost it won't change my url!

<system.web>
<urlMappings enabled="true">
<add url="~/Blah" mappedUrl="~/Folder1/page1.aspx" />
</urlMappings>
</system.web>

Please help me...
Thanks a million

* if you can tell me how to remove the "folder1" from url it's the best... because actually there's a folder with many pages.. so it's better to know how to remove only the folder name and the .aspx extension THANKS...
 
Back
Top