Version de php avec .htaccess
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Version de php avec .htaccess

by
MarouenB
Created on 2018-07-19 12:14:17 (edited on 2024-09-04 13:41:52) in Hébergements Web

je veux changer ma version php depuis mon fichier htaccess mais mon site affiche une erreur

voici mon code dans .htaccess

AddHandler application/x-httpd-php74 .php

suPHP_ConfigPath /opt/php74/lib



# BEGIN WordPress
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /demo/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /demo/index.php [L]


# END WordPress



et voici l'erreur

/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';


1 Reply ( Latest reply on 2022-08-29 14:54:35 by
Gaston_Phone
)

Bonjour @MarouenB

Le changement de version de PHP se fait uniquement via le manager OVH.