Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteBase/
RewriteRule ^haveg/employer/([0-9]+)/(.*) haveg/employer.php?msg_id=$1
当我使用重定向使用mod_rewrite
http://localhost/haveg/employer/7003/the-message-title
or
http://localhost/haveg/employer/7003/
的问题是在这里http://localhost/haveg/employer/7003
因为我删除末尾的斜杠它工作正常。它给页面找不到错误。
谢谢它的作品:) – shaikh 2012-01-30 16:03:56
所以我可以得到一个漂亮的绿色复选标记? :) – Gus 2012-01-30 16:07:42
这将重写URL http:// localhost/haveg/employer/7003message到'http://localhost/employer.php?msg_id = message'。不是很干净 – Borodin 2012-01-30 16:14:30