2012-01-14 8 views
0

RewriteBase Apache Docsmod_rewriteは `Alias`を自動的に設定しますか、` RewriteBase`を実行するときに明示的に指定する必要がありますか?

 # /abc/def/.htaccess -- per-dir config file for directory /abc/def 
     # Remember: /abc/def is the physical path of /xyz, i.e., the server 
     #   has a 'Alias /xyz /abc/def' directive e.g. # 

     RewriteEngine On 

     # let the server know that we were reached via /xyz and not 
     # via the physical path prefix /abc/def 
     RewriteBase /xyz 

     # now the rewriting rules 
     RewriteRule ^oldstuff\.html$ newstuff.html 

は、これらの行ない:

 # Remember: /abc/def is the physical path of /xyz, i.e., the server 
     #   has a 'Alias /xyz /abc/def' directive e.g. # 


のmod_rewriteのセットAlias /xyz /abc/def'が自動的に.htaccessファイルに基づいて、または、これはconfファイルで明示的に指定することを示していることを意味ですか?

答えて

2

それは自動的にAliasを設定しない:あなたがいない

を.htaccessファイル、明示的にサーバーの設定で、それを定義する必要があります
関連する問題