Removing wordpress subdirectory

I am having intermittent success removing the wordpress subdirectory after an install following the instructions at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

The site still redirects to the wordpress directory and gives a "page not found" error.

I must be missing a small detail somewhere.