View Single Post
  #8 (permalink)  
Old 04-17-2008, 08:03 PM
bdvholmes bdvholmes is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
Lightbulb The french have done it again

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
You can ignore the first two lines, they're just me wanting to fool people into thinking I have magically dynamic html files (it parses them as php 5). If you are not doing this you may want to edit the penultimate line to read:

Code:
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
Whatever your index file is really.

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
Reply With Quote