Frage

Ich habe Tow Tow Virtual Host für zwei Domänen www.domain1.com und www.domain2.com konfiguriert: generasacodicetagpre.

Ich möchte jetzt mit der HTACCES-Datei, um den Ordner auf die Domäne zu wechseln:

vor

/ data / prod / web -> www.domain1.com

/ data / dev / web -> www.domain2.com

nach

/ data / prod / web -> www.domain2.com

/ data / dev / web -> www.domain1.com

ist es möglich?Könnten Sie mir helfen?

vielen dank

War es hilfreich?

Lösung

From the Apache documentation:

DocumentRoot Directive
Description: Directory that forms the main document tree visible from the web
Syntax: DocumentRoot directory-path
Default: DocumentRoot /usr/local/apache/htdocs
Context: server config, virtual host
Status: Core Module: core

Note what's in bold here...you cannot change the DocumentRoot from .htaccess files. Here is a list of all possible context values, FYI:

http://httpd.apache.org/docs/2.0/mod/directive-dict.html#Context

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top