If you have locked yourself out, visit http://xmoddz.com/?q=user just
like you do to re-enable offline sites.
You can log in there, enough to become admin, although none of the
navigation will work yet.
Next, enter http://xmoddz.com/?q=admin/settings/clean-urls (in DRUPAL
5 and 6) to view the page where you can unset clean URLs.
I disabled clean url, flushed all the caches and did cron. I tried to
login the normal way and it would not let me. I cleaned my browser
cache but still nothing, the instructions above still let me in
I restored a brand new htcacess file from the drupal cab file