apache 伪静态,tomcat6 !!!

jhandsome007 jhandsome007 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
已将 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 本身就是虚拟的,也就是 伪静态配置未能实现,请各位指教!!!
...全文
评论 41
收藏 已收藏
分享
返回顶部
jhandsome007
Web 开发 81,107 成员 341,720 内容