Apache : How to Use Rewrite Engine Inside Alias

前端 未结 1 1155
花落未央
花落未央 2021-01-14 02:29

I have this alias configuration:

Alias /test/ \"D:/WWW/Test/\"

    Order allow,deny
    Allow from all

         


        
相关标签:
1条回答
  • 2021-01-14 02:59

    You need three things:

    1. Inside <Directory>, allow .htaccess files with AllowOverride All.
    2. Give the required permissions of mod_rewrite with Options FollowSymLinks.
    3. Inside the .htaccess, include RewriteBase /test/.
    0 讨论(0)
提交回复
热议问题