Php.ini / htaccess conflicts on godaddy.
-
I’m not real sure where to ask this, since it’s only half a wordpress problem I’m having. I run a bunch of sites on my godaddy hosting (I know that’s half the problem, but I’m not gonna transfer). I have a custom php.ini file to up my upload size for DJ mixes. That portion works fine. However I have a conflict from my htaccess file. All my sites are in there own subdomain, and wp in it’s own directory. I wanted to run a mediawiki website and had to add modifications to my htaccess (in the overall root). So now mediawiki and wp play nice…except one thing. There are 2 lines of code in my htaccess that cause my php.ini to be ignored, killing my upload limit. Here is the code that kills my php.ini:
RewriteCond %{HTTP_HOST} ^rvoodoo\.com [NC] RewriteRule ^(.*) http://www.rvoodoo.com/$1 [R=301,L] # 1 YEAR <FilesMatch "\.(ico|pdf|flv)$"> Header set Cache-Control "max-age=29030400, public" </FilesMatch> # 1 WEEK <FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=604800, public" </FilesMatch> # 2 DAYS <FilesMatch "\.(xml|txt|css|js)$"> Header set Cache-Control "max-age=172800, proxy-revalidate" </FilesMatch> # 1 MIN <FilesMatch "\.(html|htm|php)$"> Header set Cache-Control "max-age=60, private, proxy-revalidate" </FilesMatch> <IfModule mod_expires.c> # any Expires Directives go here </IfModule> <IfModule mod_headers.c> # any Header directives go here </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 # BEGIN WordPress # END WordPress
Now, if I remove the 2 lines that start with AddHandler, my php.ini file controls my upload size again, but mediawiki won’t work. When I have them in, my wiki works, but my upload size reverts to godaddy default (8mb). The only reason I need those lines of code is to make mediawiki play nice on godaddy. Anyone who actually knows code know of any way to rectify this?
http://www.rvoodoo.com is the site, although I guess it doesn’t need to be seen as everything looks right.
- The topic ‘Php.ini / htaccess conflicts on godaddy.’ is closed to new replies.