【发布时间】:2011-01-30 20:09:16
【问题描述】:
我使用的是 Joomla 1.5.14,我按照下图配置了 SEO
现在我需要将一些旧网址映射到新网站
假设我需要将 htp://mysite/old.html 映射到新的 Joomla 页面
http://mysite/index.php?option=com_content&view=article&id=32&Itemid=70
我在我的 .htaccess 文件中添加了以下内容
RewriteRule ^old\.html$ index.php?option=com_content&view=article&id=32&Itemid=70 #works!!
这很好用,但是如果我在 .htaccess 中使用 SEF URL(假设上面的页面可以通过 htp://mysite/contacts.html 访问),我会收到 404 错误
RewriteRule ^old\.html$ contacts.html #this does not work
现在的问题是:
是否可以在 RewriteRule 中使用 SEF URL?我哪里错了?
提前谢谢你
斯特凡诺
【问题讨论】:
-
请记住,StackOverflow 用于开发问题,服务器配置请关注serverfault.com
-
好的(顺便说一句:我在这里看到了很多关于 mod_rewrite 的问题,但找不到我的问题的解决方案)
-
这很好,IMO,反正它是某种编程。
标签: mod-rewrite seo joomla