Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Internal Server Error issue


Go to End
Reply


16 Posts   3806 Views

Avatar
Heike-san

Community Member, 52 Posts

20 October 2009 at 4:11am

i know that this issue has been posted countless times however none of the answer that I have found seemed to solve my problem.

Here is my .htaccess:
### SILVERSTRIPE START ###
DirectorySlash Off
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 212.113.133.130
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase onedoor

RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###

For the RewriteBase writing onedoor or onedoor/ will result in raising the 500 error.
Then anything else will cause an error like : "cannot find some directory tried/sapphire/main.php on the server".
I have been trying to work this out for days now and I feel like I really need help on this issue.

I will appreciate any suggestion or help!!

Oh and whne i try to get the error.log of the server, there is nothing in it.

Avatar
banal

Community Member, 901 Posts

20 October 2009 at 4:16am

Your RewriteBase should start with a slash. Eg. RewriteBase /onedoor

Avatar
Heike-san

Community Member, 52 Posts

20 October 2009 at 4:18am

if try /onedoor i get this answer: "/onedoor/sapphire/main.php was not found on this server"

Avatar
banal

Community Member, 901 Posts

20 October 2009 at 8:42am

Hm it should work. Your SilverStripe installation is located in the <webroot>/onedoor directory, right? Your URL will therefore be in the form of: http://mydomain.xx/onedoor/. Is that correct?

Avatar
Heike-san

Community Member, 52 Posts

20 October 2009 at 11:04am

Yes that is correct! But each time I use RewriteBase /onedoor it says "The URL /onedoor/sapphire/main.php was not found on this server"

Avatar
banal

Community Member, 901 Posts

20 October 2009 at 12:09pm

Could it be a permission problem? Can you access a file from the sapphire folder directly? eg. http://mysite.xx/onedoor/sapphire/Makefile ?

Avatar
Heike-san

Community Member, 52 Posts

20 October 2009 at 12:47pm

No I got the same internal server error!!

Avatar
banal

Community Member, 901 Posts

20 October 2009 at 8:04pm

There's maybe a permission issue. Check the permissions on the onedoor folder. It could also be a misconfiguration in the .htaccess file. Try to remove the DirectorySlash and <Files *.ss> directives. Also check if mod_rewrite is properly installed and that you have a valid .htaccess (or no .htaccess) in your webroot.

Go to Top