modifier le documentroot avec htaccess

Salut,

je refonds un site php avec spip et j'ai donc créé un dossier spip à la
racine du site pour éviter de tout mélanger. L'hébergeur ne peut
modifier le documentroot pour pointer directement dans monsite.com/spip
, je cherche comment faire ça avec .htaccess

thanx
Pascal

Pascal Desroche a écrit :

Salut,

je refonds un site php avec spip et j'ai donc créé un dossier spip à la
racine du site pour éviter de tout mélanger. L'hébergeur ne peut
modifier le documentroot pour pointer directement dans monsite.com/spip
, je cherche comment faire ça avec .htaccess

thanx
Pascal

un index.html à la racine:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0; url=monsite.org; />
<meta name="robots" content="noindex,follow" />
</head>

<body>
</body>
</html>

--
Jean-Max Reymond
Eruption de l'Etna: Eruption de l'Etna 2002

Sinon, pour rediriger proprement, tu peux mettre à la racine du site un .htaccess contenant :

Redirect permanent / /spip

Jean-Max Reymond a écrit :

Pascal Desroche a écrit :

Salut,

je refonds un site php avec spip et j'ai donc créé un dossier spip à la
racine du site pour éviter de tout mélanger. L'hébergeur ne peut
modifier le documentroot pour pointer directement dans monsite.com/spip
, je cherche comment faire ça avec .htaccess

thanx
Pascal

un index.html à la racine:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0; url=monsite.org; />
<meta name="robots" content="noindex,follow" />
</head>

<body>
</body>
</html>

Cool !;

Samy RABIH a écrit :

Sinon, pour rediriger proprement, tu peux mettre à la racine du site un
.htaccess contenant :

Redirect permanent / /spip

Jean-Max Reymond a écrit :

Pascal Desroche a écrit :

Salut,

je refonds un site php avec spip et j'ai donc créé un dossier spip à la
racine du site pour éviter de tout mélanger. L'hébergeur ne peut
modifier le documentroot pour pointer directement dans monsite.com/spip
, je cherche comment faire ça avec .htaccess

thanx
Pascal

un index.html à la racine:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />
<meta http-equiv="refresh" content="0;
url=monsite.org; />
<meta name="robots" content="noindex,follow" />
</head>

<body>
</body>
</html>