Cas d'un blog avec un domaine dirigé vers le blog, le blog est dans un dossier que l'on appelle dossier1. Le dossier et l'identifiant du blog s'appelle a6. On a donc /dossier1/a6 . c'est à dire

/dossier1/dotclear/
/dossier1/a2/
/dossier1/a3/ etc...

URL du blog

http://www.mondomaine.com/

path public

../a6/public

URL public

/public

path themes

../a6/themes

URL themes

/themes

le htaccess

# Pour activer PHP 5 :
AddType x-mapp-php5 .php
# Pour des URL sympas avec DotClear 2
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
RewriteRule ^index.php$  index.php/

index.php

<?php
define('DC_BLOG_ID','a6'); # identifiant du blog
require dirname(FILE).'/../dossier1/inc/public/prepend.php';
?>



Cas d'un blog avec aucun domaine dirigé vers le blog, le blog est dans un dossier que l'on appelle dossier1. Le dossier et l'identifiant du blog s'appelle a5. On a donc /dossier1/a5 .

URL du blog

http://www.mondomaine.com/dossier1/a5/

path public

../a5/public

URL public

/dossier1/a5/public

path themes

../a5/themes

URL themes

/dossier1/a5/themes

htaccess

RewriteBase /dossier1/a5

index.php

<?php
define('DC_BLOG_ID','a5'); # identifiant du blog
require dirname(FILE).'/../dossier1/inc/public/prepend.php';
?>

Cas d'un blog avec un domaine dirigé vers le blog, le blog est à la racine. Le dossier et l'identifiant du blog s'appelle a6. On a donc /a6 . c'est à dire /dotclear/

/a2/
/a3/ etc.

URL du blog

http://www.mondomaine.com/

path public

public

URL public

/public

path themes

themes

URL themes

/themes

htaccess

RewriteBase /

index.php

pas de problème particulier pour l'index.php comme pour les autres cas

Cas d'un blog comme le précédent mais sans domaine dirigé vers lui, le blog est à la racine. Le dossier et l'identifiant du blog s'appelle a6. On a donc /a6 , c'est à dire

/dotclear/
/a2/
/a3/ etc.

URL du blog

http://www.mondomaine.com/ a6/

path public

../a6/public

URL public

/a6/public

path themes

../a6/themes

URL themes

/a6/themes

htaccess

RewriteBase /a6/

index.php

pas de problème particulier pour l'index.php comme pour les autres cas