在lighttpd中重写请求URL

时间:2011-12-21 05:42:44

标签: mod-rewrite lighttpd apache

我正在尝试使用mod_rewrite在lighttpd中使用“干净的URL”。重写本身有效,但我的正则表达式必须关闭。

我希望http://exampledomain.com/staff/转到我设法做的http://exampledomain.com/staff.php,但我也http://exampledomain.com/images/staff_avatars/staff-blake.png也会被重定向到http://exampledomain.com/staff/

有没有办法可以将/staff/重写并“重定向”到staff.php?我不希望我的员工头像目录(或名称中包含*staff*的任何其他目录被重写:(

0 个答案:

没有答案