RewriteBase /modx/
RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC] RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
This question has been answered by lankford. See the first response.
RewriteBase /
<base href="[[!++site_url]]" />
RewriteBase /
<base href="[[!++site_url]]" />
You did run Setup after moving the site from the subdirectory to the root, right?
Did you delete all files in the core/cache directory after making the change to .htaccess?
If you can get into the database in cPanel, you might check the path in the first entry (it should be the only entry) of the modx_workspaces_table.
It's rare, but some hosts have set the server so that .htaccess is completely ignored in a user directory and has no effect.
< VirtualHost *:80 > DocumentRoot /var/www/modx ServerName www.mydomain.com ServerAlias mydomain.com < /VirtualHost >