Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache mod_rewrite是自动设置'Alias',还是在执行'RewriteBase'时显式指定它?_Apache_.htaccess_Mod Rewrite_Url Rewriting_Apache2 - Fatal编程技术网

Apache mod_rewrite是自动设置'Alias',还是在执行'RewriteBase'时显式指定它?

Apache mod_rewrite是自动设置'Alias',还是在执行'RewriteBase'时显式指定它?,apache,.htaccess,mod-rewrite,url-rewriting,apache2,Apache,.htaccess,Mod Rewrite,Url Rewriting,Apache2,发件人: 这些线路是否: # 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文件中显式指定它?它不会自动设置:您需要在服务器配置中显式定义它,而

发件人:

这些线路是否:

        #  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文件中显式指定它?

它不会自动设置:您需要在服务器配置中显式定义它,而不是.htaccess

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