Forum Moderators: phranque
RewriteEngine on
RewriteBase /pchem/
RewriteRule ^(\w+)$ index.php?page=$1 [R]
http://www.(mydomain).com/home/users/web/(SomeIDNumber)/(mydomain)/pchem/index.php?page=lala instead, and that doesn't load my file correctly either (whether or not the [R] is in the RewriteRule line). On my local machine (where I am running the most recent version of WampServer; only thing I've changed about the config files is to enable mod_rewrite in httpd.conf), I can leave out the RewriteBase line and things still work just fine.
RewriteEngine on
RewriteBase /
#
RewriteRule ^(\w+)$ /pchem/index.php?page=$1 [L]
RewriteRule ^([a-z0-9_]+)$ /pchem/index.php?page=$1 [NC,L]