Thread Starter
Alison
(@alsnd12)
It’s definitely related to the hosting environment, though I can’t figure out why it’s doing this. I’m on a shared account with 1&1. After moving it to Media Temple, I had no issues. sigh*, 1&1 is so frustrating!
This is because it is executing using PHP4 instead of PHP5.
For 1and1, edit/create the .htaccess file at the root of your wordpress install and put the following text in it (this what I have in my file for 1and1)
Options All -Indexes
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thread Starter
Alison
(@alsnd12)
You are my knight in shining armor, msimpson! Worked like a charm! I had suspected that might be the case– but I figured everyone was already on php5 already. Bad assumption. I should have ran phpinfo.
Thanks so much! Good to keep this info laying around for other people as frustrated as me. 🙂
Thread Starter
Alison
(@alsnd12)
Well it sort of worked. I got all my stuff working- it just threw my permalinks off. Going to rack my brain over that one.
Thread Starter
Alison
(@alsnd12)
I changed
RewriteBase /
to the name of my directory, and same with this line:
RewriteRule . /index.php [L]
I’m a n00b at this apache stuff. 🙂
Glad you got it worked out. I’m not sure if you need all the rewrite stuff or just the top few lines to make it PHP5. I’m just passing on what I got from someone else…