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 <667d6cb3$0$8228$426a74cc@news.free.fr>
Deutsch   English   Français   Italiano  
<667d6cb3$0$8228$426a74cc@news.free.fr>

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

Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp4-1.free.fr!not-for-mail
Newsgroups: fr.comp.infosystemes
Subject: Re: URL rewriting qui ne marche plus correctement
From: loiseauthierry@free.fr (Thierry Loiseau)
Date: Thu, 27 Jun 2024 15:44:19 +0200
References: <2AdMIo7aBbHKVrbzkhqvFg8fCec@jntp>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Organization: La =?ISO-8859-1?Q?t=EAte_dans_les_=E9toiles?=
X-Face: "gCGw7%Nvy^)m::5L$E2$GtD~/}_(n-+"luS+tnv]{<Z]2,r?14o'gL9Xvrcw
        zvogC[>T6}`$N6clgfktLw2#uGy/{xsBg!I2z/uo/fKC'>_Pn6v`=Vz4^:BgbD+5XZjW
        mMh/,3"O`"P0/4kX1CDt3e&<Z(sd5vkNVbNiOEz}5;W3FNS+V@)bT<5S\nN,56_5/@3J
        gV#v2nMv5IanYb)C9*w&H@~79Eqyl(_vr
User-Agent: MacSOUP/F-2.8.4 (6da4d6e6d0) (Mac OS X version 10.9.5 (x86))
Lines: 30
Message-ID: <667d6cb3$0$8228$426a74cc@news.free.fr>
NNTP-Posting-Date: 27 Jun 2024 15:44:19 CEST
NNTP-Posting-Host: 82.67.45.216
X-Trace: 1719495859 news-3.free.fr 8228 82.67.45.216:50073
X-Complaints-To: abuse@proxad.net
Bytes: 2210

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() ?

Thierry
-- 
       *    *                       __*__              *
    *           *      * -----oOOo--- O ---oOOo-------       *      *
                           http://astrophoto.free.fr     *
                 *    *  -------- oOOo oOOo ----------         *