Hi all,
Installing a SilverStripe site and am having very odd .htaccess related
issues.
Site is installed in a subdomain at my hosting.
.htaccess looks like this:
### SILVERSTRIPE START ###
AddHandler application/x-httpd-php5 .php
### AddType x-mapp-php5 .php
### AddHandler x-mapp-php5 .php
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php5?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
I keep getting 500 Internal server error, but if I comment out the first
AddHandler, the server returns the *raw script* from /sapphire/main.php (!)
Thus, I know the rewrite is working (because /sapphire/main.php is being
called), but I just can't get the server to execute main.php..
Even more oddly, I have two other SilverStripe sites I installed on this
same host which ran without any .htaccess hiccups.
Any help appreciated - I'm at head-bashing stage here :)
Paul
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---