How do I turn off the functionality to allow a user to isit a page by typing in the url of the masterpage
For example I have a template called UserDetails. A user can go to this page by tying in http://www.mysite.com/UserDetails. ; But I don't want them to... How do I turn this off?
If you want to turn off the alternate URL feature altogether, I think you can do it by going into the 404handlers.config file in the site "/config" folder and commenting out the entry
Going to a page via a mastepage
Hello,
How do I turn off the functionality to allow a user to isit a page by typing in the url of the masterpage
For example I have a template called UserDetails. A user can go to this page by tying in http://www.mysite.com/UserDetails. ; But I don't want them to... How do I turn this off?
Thanks
James
You could use the url rewriting engine to redirect/rewrite to the real page rather than turn off the alttemplate support?
either rewerite rule for ^.*/UserDetails ...
or
depending on how this actually works behind the scenes you could rewirte for any page request that ends up as page?altTemplate=XXX
not checked if http://www.mysite.com/UserDetails acually routes to http://www.mysite.com/?altTemplate=UserDetails
If you want to turn off the alternate URL feature altogether, I think you can do it by going into the 404handlers.config file in the site "/config" folder and commenting out the entry
<notFound assembly="umbraco" type="SearchForTemplate"/>
You may need to touch the web.config for the setting to take effect.
Yes that worked!
thanks tim
is working on a reply...