Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <GvWWIltbvHEzlTKIKuFx0R_FFEI@jntp>
Deutsch   English   Français   Italiano  
<GvWWIltbvHEzlTKIKuFx0R_FFEI@jntp>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!pasdenom.info!from-devjntp
Message-ID: <GvWWIltbvHEzlTKIKuFx0R_FFEI@jntp>
JNTP-Route: news2.nemoweb.net
JNTP-DataType: Article
Subject: Re: URL rewriting qui ne marche plus correctement
References: <2AdMIo7aBbHKVrbzkhqvFg8fCec@jntp> <667d6cb3$0$8228$426a74cc@news.free.fr>
Newsgroups: fr.comp.infosystemes
JNTP-HashClient: rjQFUydi_Al6h9N5DmKin9DwVFg
JNTP-ThreadID: Fa6xiCZJXu6uaRx43QgLLcmMq2s
JNTP-Uri: http://news2.nemoweb.net/?DataID=GvWWIltbvHEzlTKIKuFx0R_FFEI@jntp
User-Agent: Nemo/0.999a
JNTP-OriginServer: news2.nemoweb.net
Date: Sun, 07 Jul 24 06:30:51 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0
Injection-Info: news2.nemoweb.net; posting-host="516ee13c1e79fa65aedf115a32aee346f9289ca9"; logging-data="2024-07-07T06:30:51Z/8936335"; posting-account="44@news2.nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: pehache <pehache.7@gmail.com>
Bytes: 2512
Lines: 35

Le 27/06/2024 à 15:44, loiseauthierry@free.fr (Thierry Loiseau) a écrit 
:
> pehache <pehache.7@gmail.com> wrote:
> 
>> ==============================================
>> <?php
>>   if (substr($argv[count($argv)-1],-4)!="html") {
>>           header('Location: 
>> '.$_SERVER["SCRIPT_URI"]."%3F".$_SERVER["QUERY_STRING"].".html");
>>           exit(); } 
>> ?>
>> ==============================================
>> 
>> Ca marchait très bien. Mais sur la page perso Free ça ne marche pas. 
>> L'URL est bien réécrite (donc le fichier php est exécuté), mais le 
>> résultat n'est pas conforme à ce qu'il était avant:
>> 
>> http://mapage.free.fr/monsite/viewtopic.php?f=5&t=482
>> devient:
>> http://mapage.free.fr/monsite/%3Ff=5&t=482.html
>> 
>> "viewtopic.php" est donc supprimé de l'URL...
> 
> Sans doute que _SERVER["SCRIPT_URI"] n'est pas disponible ?
> Vérifier en faisant un phpinfo() ?
> 

Sans doute... Je n'ai pas vérifié et ai simplement remplacé par le nom 
en dur :

<?php
  if (substr($argv[count($argv)-1],-4)!="html") {
          
header('Location:'."viewforum.php%3F".$_SERVER["QUERY_STRING"].".html");
          exit(); } 
?>