Salut Olivier,
Ta solution 2 est meilleure, elle permet de récupérer tout ce qui suit le .com/ si j’ai bien compris ?
En revanche, cela ne fonctionne pas.
http://www.architecture-gambino.com/v2/index.php?id=24
devient
http://www.architecture-gambino.com/index.php?q=v2/index.php&id=24
On dirait que ça vient d’une règle contenue dans le .htaccess (livrée par défaut avec MODx). Voici mon contenu .htaccess :
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
# Passer le register_globals a off
SetEnv REGISTER_GLOBALS 0
# Make sure .htc files are served with the proper MIME type, which is critical # for XP SP2. Un-comment if your host allows htaccess MIME type overrides.
#AddType text/x-component .htc
RedirectMatch 301 ^/v2/(.*)$ http://www.architecture-gambino.com/$1
La 4ème règle contient un q=, est-ce que ça pourrait faire interférence ? Merci pour tes réponses