WordPress resetting PHP version in .htaccess
-
Previously I worked through an issue where my host’s server was running PHP 7.4, but my site was not using it, by editing the .htaccess file. That worked great for a while, but then reverted back.
Upon closer examination I see the following in my .htaccess, which shows that the AddHandler is rewritten.
I’ve looked through my php.ini (which appears to show 7.4) and done some searches that reference needing to update Apache to get this fixed.
Can anyone provide some confirmation or alternatives to how to get WordPress to recognize the php version itself vs my manual edits of the .htaccess file?
Thanks
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. AddHandler application/x-httpd-ea-php70 .php <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /site/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /site/index.php [L] </IfModule> # END WordPress
The page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘WordPress resetting PHP version in .htaccess’ is closed to new replies.