[eluser]Unknown[/eluser]
Just wanted to mention something I ran into while testing some code on my host: 1and1.com. I was trying to deploy to 1and1 and ran into some problems.
1- Removing index.php from the URL. I followed another poster's suggestions on this:
a) set the following in the .htaccess file and the file only needs to go in the root.
Options -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) index.php/$1 [L]
Notice the RewriteBase just has slash since CI is in the root folder
b) Edit the config.php file with these settings:
$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";
2- I was trying to retrieve mail from a POP3 server using the mailbox.php. I downloaded this file. It contains a class called Mailbox. It is a codeignitor implementation of the fmailbox flourish class. Anyway, 1and1 server kept failing when it parsed this file on line 26 - static private $smime_pairs = array(); I needed to do two things to get this to work:
a) Edit the same .htaccess file above and put these two lines in there:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
b) I had to remove the word static from that line. Once I removed the word static, it worked!
I hope these suggestions help! - Michael