Search DominoPower's 11,437 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Dan at 100 tips and counting (continued)

And so on and so on. Since there are so many possibilities, I began trying to find what they all had in common. One thing that I noted is that I couldn't think of any URL that would have ".nsf/$D" in it that was not trying to use either the $DefaultNav, $DefaultView, or $DefaultForm URL commands, which I did not want people using. So I came up with a total of 12 mappings (16 if your server is case-sensitive) to cover all of the possible URL combinations people might use when attempting to invoke one of the three commands listed above.

Since there are 12 (or 16) mappings, rather than trying to create a URL redirection document for each one, you can alternatively just paste the code below into the httpd.cnf file on your Domino server. Just make sure you make a backup first, however, just in case. Here's the text to insert into the httpd.cnf file:

#######################################
# Redirections to prevent use of $DefaultNav,
# $DefaultView and $DefaultForm URL commands
#######################################
map */*.*/$d* */*.nsf
map */*.*/$%44* */*.nsf
map */*.*/$%64* */*.nsf
map */*.*/%24d* */*.nsf
map */*.*/%24%44* */*.nsf
map */*.*/%24%64* */*.nsf
map */*%2E*/$d* */*.nsf
map */*%2E*/$%44* */*.nsf
map */*%2E*/$%64* */*.nsf
map */*%2E*/%24d* */*.nsf
map */*%2E*/%24%44* */*.nsf
map */*%2E*/%24%64* */*.nsf

For case-sensitive servers, such as Sun and Linux, add the following additional four mappings:

map */*.*/$D* */*.nsf
map */*.*/%24D* */*.nsf
map */*%2E*/$D* */*.nsf
map */*%2E*/%24D* */*.nsf

Once you're done modifying the httpd.cnf file, type "tell http restart" on the server console for the changes to take effect. Then start testing your server to make sure everything is working well for you. The redirections should take users to the base URL for the current database, so if the database launch properties aren't set correctly, you might still see a list of views. Note also that you could have a problem if any developers named any design elements starting with "$D", but this seems fairly unlikely.

I want to thank Ben Newman of Quest Enterprises Ltd. (at http://www.quest.ch), a Notes Consultancy based in Zurich, for emailing me about the Hex code issue and posting the information on the PowerBoards. Thanks also to Jorn Bijnsdorp for being the first to post the same information on the PowerBoards. And finally, special thanks to my co-workers Shar Bacchus and Charles Corpuz for helping me immensely with thinking this problem through and coming up with a solution.

Even after all of the thinking and testing I've done trying to solve this problem, I know that there could have been things that I might have overlooked, so if you have any more suggestions or just want to tell me about your experiences trying to deal with $DefaultNav and similar problems, email me at dvelasco@dominopower.com.

For more information about Hex code and Domino URL commands, you can visit the ASCII table with Hex code information at http://www.neurophys.wisc.edu/www/comp/docs/ascii.html.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  7  ·  Next »
Other articles you might like
Home > Lotus Community > Editorials (71 articles)
   Five trends for 2010
   Say goodbye to the Uh-Ohs. Long live the Tens.
   The editorial strikes back
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login