【发布时间】:2009-11-09 22:31:20
【问题描述】:
目前,我的 htaccess 中有设置,以便 example.com/dept/noc 转到:example.com/index.php?dept=dept&n=noc 使用
RewriteEngine On
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)$ index.php?dept=$1&n=$2 [QSA]
RewriteCond %{SERVER_PORT} 80
我有一个名为 upload 的文件夹,我如何确保 /upload/ 文件夹的 url 重写无效(例外),因为
example.com/upload/file.doc 不起作用?
【问题讨论】:
-
添加一个带异常的重写条件?
标签: apache .htaccess url-rewriting