j'ai un souci avec la réécriture des url, j'ai fait un test avec un fichier nommé test.html avec la réécriture ci-dessous est ça fonctionne quand j'appelle foo.html, c'est bien test.html qui s'affiche.
Code : Tout sélectionner
RewriteEngine on
RewriteRule ^foo.html$ /test.html [L]Code : Tout sélectionner
RewriteEngine on
RewriteRule ^profil-([0-9]+)\.html$ /profil.php?id=$1 [L]Voici la code de mon template (function haut)
<?php
function designhaut($titre) //à mettre en haut de chaque page pour avoir le design du site
{
global $config, $lang, $prefix;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title><?php echo $titre; ?> - <?php echo $config['titre']?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="" />
<meta name="description" content="<?php echo $config['description']?>" />
<meta name="keywords" content="<?php echo $config['mots_cles']?>" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="designs/simple/design.css" />
</head>
<body>
......code suite
}
?>
Merci d'avance de votre aide.