且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

阿帕奇:如何使用重写引擎内部别名

更新时间:2023-09-18 23:32:58

您需要三样东西:

  1. <目录> ,允许使用.htaccess文件的AllowOverride全部
  2. 提供的mod_rewrite的权限与有FollowSymLinks
  3. 在的.htaccess,包括的RewriteBase /测试/
  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/.