Blog » More CMS troubles

More CMS troubles

It would appear that I did not solve quite all the compatibility issues between Silverstripe and my web-host. Yesterday I was unable to upload files. The problem? It was once-again searching for files in the wrong locations. For some reason, it still insists on prepending "/admin/assets" to URLs - sometimes multiple times - when in the file uploads section.

As my PHP and web-design knowledgeis limited, I used the following workaround. In .htaccess, I added the following:

RewriteRule (.*)/sapphire/(.*) /sapphire/$2 [L]
RewriteRule (.*)/jsparty/(.*) /jsparty/$2 [L]
RewriteRule (.*)/cms/(.*) /cms/$2 [L]
RewriteRule /admin/assets/admin/assets/(.*) /admin/assets/$1 [L] 

This strips away the prepended directories ensuring that the files are downloaded from the correct locations. I hope that this is the last compatibility related issue that I have to deal with.

Blog » More CMS troubles

Post your comment


No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments

Blog » More CMS troubles