Joomla 1.5的URL结构在版本2.5中改变了。
之前是:
http://example.com/index.php?option=com_content&task=view&id=587&Itemid=73
现在是:
http://example.com/index.php?option=com_content&view=article&id=587&Itemid=114
*请注意ID和itemid数字基于页面更改,而所有页面有一个ID不是都在URL中具有的Itemid。
虽然我们更新了数据库中的所有链接,但很多人还是有旧的链接结构,所以我们要编辑htaccess文件,所以如果有人进入旧的结构,它会转向正确的结构。
简单地说,在url中input的任何URL与task = view都应该replace为view = article。
有没有人知道一个简单的方法来做到这一点在htaccess?
答案可以在这里find: http : //www.codejoomla.com/joomla-user-guide/old-urls-dont-work-after-upgrading-10-to-17.html
更新`jos_content`设置`introtext` =replace(introtext,'task = view','view = article'); 更新`jos_content`设置`introtext` =replace(introtext,'task = category','view = category'); 更新`jos_content`设置`introtext` =replace(introtext,'task = blogcategory','view = category&layout = blog'); 更新`jos_content`设置`introtext` =replace(introtext,'option = com_wrapper&Itemid =','option = com_wrapper&view = wrapper&Itemid =');