|
|||
|
I have been satisfied with 1and1 hosting up until now when I have tried to use the Zend Framework on my site.
My problem lies with bootstrapping. The mod-rewrite engine does not seem to want to work. Here is what my .htaccess files is: PHP Code:
Error 500 - Internal server error Does anyone here have an experience with Zend Framework and 1and1 hosting? Can anyone recommend a web hosting provider that is easier to use Zend Framework with? THANK YOU. |
|
|||
|
Not sure if you're still having trouble with this.
Try this in your .htaccess file: Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Eric |
|
|||
|
Thanks for the help!
I have since moved on to a VPS (Rimuhosting). Have that much flexbility is a lot better for me, and I am also learning how to manage a server for real. I still have my old 1and1 space though and I will give this new Rewrite code a try! |
|
|||
|
<IfModule mod_rewrite.c>
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> works great on 1 and 1 web hosting for using the Zend Framework I have tried it on my site at http://seo-samurai.com |
|
|||
|
This is what I used when setting Zend Framework on a dedicated 1and1 server.
in .htaccess Code:
AddType x-mapp-php5 .php RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php i Code:
nclude_path ="/homepages/**/***********/zend_library" |
|
|||
|
Quote:
I tried, but still fail. I do follow the "Official+ZF+QuickStart". Now: .htaccess is: AddType x-mapp-php5 .php RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php php.ini is: include_path="/homepages/23/d189849426/htdocs/1or9/card/library" or include_path="/homepages/23/d189849426/htdocs/1or9/card/library/Zend" I tried both above. I put php.in at /homepages/23/d189849426/htdocs/1or9/card/public is that a right place? Is there anyone can help me? I really hate 1and1. |
|
|||
|
Here guys is an htaccess configuration that I can confirm is working on my 1and1 account to run Zend Framework.
It didn't seem like I could find anything on the web except for, would you believe it, a bit of code I found it on a french website! and here is my own htaccess file: Code:
AddType x-mapp-php5 .php .html .htm AddHandler x-mapp-php5 .php .html .htm RewriteEngine On RewriteBase / RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.html Options -MultiViews Code:
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php I haven't even bothered with php.ini files, however I am just starting with the framework so it might be necessary. Nonetheless I'll keep you updated either way. Good luck, and let me know if that helps. Last edited by bdvholmes : 04-17-2008 at 08:05 PM. Reason: Forgot to mention php.ini files |
|
|||
|
htaccess file is very complex i have experienced problem with it but finally i sorted it out.
Have talked with 1and1 about the problem you are having they might fix it up for you. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|