1. Issue with mod_rewrite
I don't believe it is this as we have another customer site running on the same server (built using SilverStripe), where the URL rewriting works perfectly.
2. Issue with config.php
There's a few gotchas I'm aware of with this especially since we're currently hosting the site on an IP address (I want to get it all working on the IP before I repoint the DNS). However, I have set root_url to be the IP address + /~websitename. When I mouse over a link, this appears to have worked great; the paths and hierarchy are fine, just when you click you get a 404.
3. Issue with .htaccess
I've used the one from the wiki (here), which worked fine previously.
The Apache logs, however tell me something a bit more interesting:
The path it's talking about (/var/www/html/) is from the old server, not the new one. Is this info set somewhere in CMSMS? I can't see it in config.php. Is this even the problem?[Wed Jan 14 14:18:19 2009] [error] [client 213.208.100.91] File does not exist: /var/www/html/home, referer: http://myserverip/~websitename/
[Wed Jan 14 14:18:19 2009] [error] [client 213.208.100.91] File does not exist: /var/www/html/404.shtml, referer: http://myserverip/~websitename/
Thanks a lot for your help!
Environment:
CMSMS version 1.4
PHP 5.2.x
Apache 2.x
CentOS