I setup a third order domain on my server and I'm trying to re-write it with mod_rewrite. The problem is it doesn't seem to work the way I would think it does. I created the 3rd order domain mm, so for example it would be http://mm.mydomain.com. The way control panel sets it up, it's looking for a subdirectory in the root called mm. I plan to setup multiple 3rd order domains, so rather then have each in it's own subdirectory, I'm trying to rewrite it using the following rules:
RewriteRule ^([a-zA-Z]+)/$ landing\.php [NC]
RewriteRule ^([a-zA-Z]+)$ landing\.php [NC]
Now, it seems to work in that when when I go to mm.mydomain.com, it's looking for landing.php. The only problem is, it's not seeing it in the root directory, and the file is there. Any help on this would be greatly appreciated!!