使用K2 v2.6.5制作SEF URL [英] Making SEF URLs with K2 v2.6.5

查看:168
本文介绍了使用K2 v2.6.5制作SEF URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Joomla 2.5.1和K2 2.6.5.我试图弄清楚如何在K2中使用SEF网址.我的网站带有真实"文件夹"coolmovies". Joomla控制此文件夹.

I'm using Joomla 2.5.1 along with K2 2.6.5. I am trying to figure out how to use SEF urls in K2. I have my site with the 'real' folder 'coolmovies'. Joomla controls this folder.

在K2中,我有一个类别别名='scifi',其中有一个项目别名='startrek','startrek'具有项目ID42.目前,此网址有效:

Within K2, I have a category alias='scifi', within which I have an item alias='startrek' and 'startrek' has the item id 42. Currently this url works:

http://mycoolsite.com/coolmovies/42-startrek

我将K2的SEF设置更新为以下内容:

I update the SEF settings for K2 to the following:

从理论上讲,这现在应该起作用:

In theory, this should now work:

http://mycoolsite.com/coolmovies/scifi-startrek

但事实并非如此.我尝试了各种排列,但是除了404错误之外什么也没有.

But it doesn't. I've tried all kinds of permutations, but I get nothing but 404 errors.

我已找到此链接供参考.

I've found this link for reference. http://getk2.org/community/New-to-K2-Ask-here-first/6472-K2-SEO-issue---Can-it-be-fixed?limit=20&start=40

任何帮助将不胜感激!

推荐答案

URL的构造错误.如果您的类别别名为"scifi",而文章别名为"startrek",则网址应为

The construction of your URL is wrong. If your category alias is "scifi" and your article alias is "startrek" the url should be

http://mycoolsite.com/scifi/startrek

这篇关于使用K2 v2.6.5制作SEF URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆