ionCube and CakePHP - help!
Posted by: spunko2010
Posted on: 2009-08-05 02:40:00
Hi Guys
As you probably know, Dreamhost requires that we add this to the .htaccess in the root for ionCube to work:
#--- DH-PHP handlers ---
AddHandler php-cgi .php
Action php-cgi /cgi-bin/dispatch.cgi
#AddHandler fastcgi-script fcg fcgi fpl
#AddHandler php-fastcgi .php
#Action php-fastcgi /cgi-bin/dispatch.fcgi
When we do though, the rest of the .htaccess causes an Error 500, as I'm running CakePHP. If however I remove the parts of the .htaccess that are linked to our CakePHP software, ionCube works fine - but the website itself doesn't load.
I need this in my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
We can’t have these both together for some reason? Can someone advise as to how to use both of these? Thanks!
This was posted before by a different user, is there ANY workaround?
http://forum.dreamhosters.com/troubleshooting/103905-Redirect-problem-with-htaccess-and-cakephp.htm
Edited by spunko2010 on 08/05/09 02:43 AM (server time).