【发布时间】:2011-11-05 10:22:16
【问题描述】:
我正在尝试在 joomla 中手动使用 mod_rewrite,并且我有以下规则:
RewriteRule ^test/(t1|t2|t3)-(.*).html$ /index.php?option=com_jumi&fileid=39&$1=$2 [L,NC]
所以我想要网址
http://www.mysite.com/index.php?option=com_jumi&fileid=39&t1=foo
像这样显示
http://www.mysite.com/test/t1-foo.html
该规则正常工作,但是当我在重写页面中时,链接像
http://www.mysite.com/link.html
或 http://www.mysite.com/xxx/link.html
成为
http://www.mysite.com/test/link.html
或 http://www.mysite.com/xxx/test/link.html
分别。
有什么建议吗?
谢谢
【问题讨论】:
标签: .htaccess mod-rewrite joomla