Welcome Guest, Not a member yet? Register   Sign In
.htaccess & dreamhost - error combining two parts [solved]
#8

[eluser]Mark Krieger[/eluser]
I figured it out: I missed the extra lines in your .htaccess, I put them in, it all works fine now!

Mark

I have exactly the same problem, I have a new php which I've built (I need SOAP) and I have some rewriting rules for CI. I am using dreamhost for now, they have a php installed with no SOAP support....

Here is the .htaccess:

<IfModule mod_actions.c>
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
</IfModule>
<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|user_guide|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>

this fails with an error 500. If I change the first line to:

<IfModule !mod_rewrite.c>

it 'works', but then the actionhandler to use a custom php fails to use it, it uses the php bin in /usr/local/bin. And if I just have the first group of stuff, with no rewrite rules, I do get the new php! Weird!!!!

Help!!!???

Mark


Messages In This Thread
.htaccess & dreamhost - error combining two parts [solved] - by El Forum - 10-22-2010, 04:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB