souly: Geänderter Verzeichnispfad (mod_rewirte)

Beitrag lesen

ich habe was gefunden um das DocumentRoot problem evt zu lösen. nur wie schreibe ich es genau umgekehrt als es hier steht?

Moved DocumentRoot  
  
Description:  
  
    Usually the DocumentRoot of the webserver directly relates to the URL "/". But often this data is not really of top-level priority. For example, you may wish for visitors, on first entering a site, to go to a particular subdirectory /about/. This may be accomplished using the following ruleset:  
Solution:  
  
    We redirect the URL / to /about/:  
  
    RewriteEngine on  
    RewriteRule   ^/$  /about/  [R]  
  
    Note that this can also be handled using the RedirectMatch directive:  
  
    RedirectMatch ^/$ http://example.com/e/www/