CODE:
.htaccess:
RewriteEngine On
RewriteRule ^(.*)/*$ base.php?request=$1 [NC,L]
base.php
<?php
echo "this is base.php <br/> and Get Vaiables <br> ";
print_r($_GET);
?>
pour la demande:
localhost/blahblahproject/hello
RÉSULTAT PRÉVU:
c'est base.php
et obtenir Vaiables
Array ([demande] => bonjour)
actuelle RÉSULTAT:
c'est base.php
et obtenir Vaiables
Array ([demande] => base.php)
essayer 'RewriteRule^(. *) /base.php?request=$1 $ [QSA, L]' Je ne comprends pas votre part '/ *' .. –
si l'utilisateur tape localhost/blahblahproject/bonjour //////// ou au moins localhost/blahblahproject/hello/ – user2067797