I've moved the ht.access file to my localhost root, renamed it to .htaccess and tweaked it as follows:
Is the .htaccess in the localhost/mysitesubfolder/ ? It should be in the same folder as your MODx root.
Edit this file for windows:
xampp/apache/conf/httpd.conf
For the Mac, it’s this file:
Applications/xampp/etc/httpd.cnf
Make sure that the following two lines are uncommented (remove the semicolon at the beginning of the line):
LoadModule rewrite_module
modules/mod_rewrite.so
Place the .htaccess file in the folder --> c:\wamp\www\mysitefolder
c:\wamp\www\mysitefolder\.htaccess
c:\wamp\www\mysitefolder\assets
c:\wamp\www\mysitefolder\connectors
c:\wamp\www\mysitefolder\setup
c:\wamp\www\mysitefolder\manager
Are you using XAMPP? It has mod_rewrite off by default. MAMP may have something similar.
(and the .htaccess file should go in the MODX root -- get rid of the one above there).
This is from my book:
Edit this file for windows:
xampp/apache/conf/httpd.conf
For the Mac, it’s this file:
Applications/xampp/etc/httpd.cnf
Make sure that the following two lines are uncommented (remove the semicolon at the beginning of the line):
LoadModule rewrite_module
modules/mod_rewrite.so