【发布时间】:2012-02-10 13:00:05
【问题描述】:
# /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 会根据 .htaccess 文件自动设置 Alias /xyz /abc/def' 或显示在 conf 文件中明确指定?
【问题讨论】:
标签: apache .htaccess mod-rewrite url-rewriting apache2