4. Tell Drupal to generate URLs without 'main/' in it, so you get http://www.example.org/node/XXX instead of http://www.example.org/main/node/XXX.
See http://drupal.org/node/135206. One would set: $base_url = 'http://example.org';
in settings.php.
Of course one does not have to do that if you actually want URLs in the form of http://example.org/main/node/XXX because for example Drupal is only handling a subdirectory of the site.
I was following this post and didn't understand why it wasn't working like I thought you explained it would work (misread it). So this may help others.
Maybe a fourth step
There may be a fourth step:
4. Tell Drupal to generate URLs without 'main/' in it, so you get http://www.example.org/node/XXX instead of http://www.example.org/main/node/XXX.
See http://drupal.org/node/135206. One would set:
$base_url = 'http://example.org';in settings.php.
Of course one does not have to do that if you actually want URLs in the form of http://example.org/main/node/XXX because for example Drupal is only handling a subdirectory of the site.
I was following this post and didn't understand why it wasn't working like I thought you explained it would work (misread it). So this may help others.