how to hide default.html from url

32 views
Skip to first unread message

Michel Byvoet

unread,
Aug 28, 2014, 6:30:37 AM8/28/14
to urlrewr...@googlegroups.com
Hi All,

We have implement urlRewritingNet in our website but want to change our homepage link:

Any suggestion on how to change following rules? 
<urlrewritingnet rewriteOnlyVirtualUrls="false" contextItemsPrefix="QueryString" defaultPage="default.html" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
   <rewrites>
  <add name="Home" virtualUrl="^~/([a-z]+)\/default\.html" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default$1.aspx" ignoreCase="true"/>

Thanks,
Bert

Goldie

unread,
Aug 29, 2014, 8:57:54 AM8/29/14
to urlrewr...@googlegroups.com
First off, since your using IIS, did you set the Default Document value?  This is usually the initial landing page Default Page that IIS assumes when there is no document referenced (like something.aspx) in a subdirectory.

In the long term you will need to create a "catch-all" rule that routes URL's to a specified processing file.  In most URL program/libraries this should be the last rule in the list of rules.

If your URL design is clean you should never see the file extension in the address bar of the browser.  You may see the page reference in the status bar of the browser but not in the address bar.  As well, nothing you can do about people snooping with Dev Tools.
Reply all
Reply to author
Forward
0 new messages