Hey guys, i wonder if you can help!
I'm new to silverstripe and am having a few issues with uploading the site i've created to a fasthosts server.
I've created the site locally and all works well. When i transfer the entire site and change all the required credentials (passwords for mysql etc) to the fh server i get a 500 Error. Now i'm pretty sure this is to do with the .htaccess and more specifically the mod_rewrite module.
Whilst mod_rewrite doesn't show in phpinfo, i've used a test script to confirm it is active and have also contacted the hosting supplier, they also asure me that mod_rewrite is active.
I've also tried the route of installing a fresh distro of the latest silverstipe. The install states that mod_rewrite is not enabled and that the clean url's cannot be used. It allows me to finish installation and the front end site works. When i load up the backend admin area, no images show and non of the links show. I've attached the .htaccess file for this fresh install. To remove the 500 error on first upload to actually get to the install script i had to comment out one section shown in the below copy)
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from localhost
</Files>
#<Files web.config>
# Order deny,allow
# Deny from all
#</Files>
ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html
<IfModule mod_alias.c>
RedirectMatch 403 /silverstripe-cache(/|$)
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
Can any of you guys shed any light, as to why this isnt working? Any other information required, please ask, i'll be more than happy to provide it, i just need this fixed.
Many thanks in advance, i really appreciate it!
Kind regards,
Commucom