why tuckey UrlRewriteFilter outbound-rule mapping did not work?
2016-09-07 00:00
841 查看
1down votefavorite | I'm using urlrewritefilter to pretty up my product links for a better google indexing (removing product parameter). example: .../product/snowboardais transferred via url rewriting rule to .../product.seam?product=snowboardarewriting rule <rule> <from>^/product/([a-zA-Z]+)$</from> <to>/product.seam?product=$1</to> </rule>But my problem is that I've no idea at the moment how to rewrite outbound links in my facelets. I read the paragraph about outbound-rule in the in the manual. Now I'm wondering how I can use this together with s:link? what about form submits or redirects (action outcome null)? please help to sort things out :) possible rewriting outbound rule (?) <outbound-rule> <from>^/product.seam?product=([a-zA-Z]+)$</from> <to>/product/$1</to> </outbound-rule>any hints/ideas? java url-rewriting seam tuckey-urlrewrite-filter
| |||
add a comment |
2 Answers
activeoldestvotesup vote1down vote | I had the same problem and solved it removing the caret at the beginning<outbound-rule> <from>/product.seam?product=([a-zA-Z]+)$</from> <to>/product/$1</to> </outbound-rule>(Also, I'm not sure if you should try escaping the question mark symbol with \?)
|
相关文章推荐
- IIS7+ - 如何让Url Rewrite Outbound Rule和Dynamic Compression同时工作
- UrlRewriteFilter 学习笔记
- urlrewriteFilter condition----reference
- java使用urlrewritefilter实现网站伪静态
- web访问中Urlrewritefilter 对url进行替换配置
- URL(基础三) UrlRewriteFilter的使用注意事项
- UrlRewriteFilter
- javaweb程序的URL重写工具urlrewritefilter
- 报错:classpath resource [com/qinkangdeid/mapping/] cannot be resolved to URL because it does not exist
- Url Rewrite Filter 使用全攻略
- java web urlrewritefilter(伪静态)配置
- UrlReWriteFilter路径改写(伪链接)
- UrlRewriteFilter官方配置教程(jsp转html)
- URL Rewrite Rule重写规则
- 用 UrlRewriteFilter 实现 URL 重写
- UrlRewriteFilter重写请求中的url工具
- Java伪静态--urlrewritefilter
- 使用UrlRewriteFilter的实现动态URL静态化
- Url Rewrite Filter 使用全攻略
- Url Rewrite Filter 使用全攻略