apache 伪静态,tomcat6 !!!
已将 apache2.2 与 tomcat6 整合,但这个伪静态 到底是怎么实现 ??
apache 的httpd.conf 中,也做了相应的配置:
LoadModule rewrite_module modules/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride all
Order deny,allow
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/task/Detail_(\d+)\.html$ $1/xsdetail.action?tid=$2
</IfModule>
在 list 页面中,链接是 task/Detail_1.html,task/Detail_2.html,...
点击后,并没有向 xsdetail.action 跳转,直接提示找不着 task/Detail_1.html 页面,
因为这个html 本身就是虚拟的,也就是 伪静态配置未能实现,请各位指教!!!