Hi all,
I have multiple SS3.1 accounts on my web server and they've started doing something strange with their redirects. Images in the content of pages add main.php to the start of their links (eg. main.php/assets/folder/image.jpg). A look at the dev console shows SilverStripe is looking for the file at http://domain.com/framework/main.php/assets/folder/image.jpg and returns a 404 to that request.
A fresh install on a new account (on the same server) using 3.1.14 has the main domain redirecting to http://domain.comhttp//domain.com/install.php instead of http://domain.com/install.php as expected.
It seems there's an issue with the .htaccess file/s but I can't understand why they're behaving differently.
Unfortunately this isn't a straight forward case. The server was compromised on the weekend and we had to clear away all .htaccess files (and favicons) and re-upload. After that I also had to include Director::setBaseURL('/'); to the mysite/_config.php to get pages beyond the home page working properly (links to the .css was getting the main.php/ treatment) but this obviously doesn't fix the issue in all cases.
Does anyone know where I can look to try to solve this issue? The SS sites are the same as before, the server is the same as before, but obviously one or both aren't the same as before somewhere because the behaviour is broken/different. Myself and the server admin are stuck at this point.
i appreciate any and all ideas. Thanks.