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

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

问题描述

我使用 Joomla 2.5.1 和 K2 2.6.5.我想弄清楚如何在 K2 中使用 SEF url.我的网站带有真实"文件夹coolmovies".Joomla 控制着这个文件夹.

在 K2 中,我有一个类别 alias='scifi',其中我有一个项目 alias='startrek',而startrek"的项目 ID 为 42.目前此网址有效:

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

我找到了这个链接以供参考.http://getk2.org/community/New-to-K2-Ask-here-first/6472-K2-SEO-issue---可以修复吗?限制=20&开始=40

任何帮助将不胜感激!

解决方案

您的 URL 结构错误.如果您的类别别名是scifi"并且您的文章别名是startrek",则 url 应该是

http://mycoolsite.com/scifi/startrek

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.

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

I update the SEF settings for K2 to the following:

In theory, this should now work:

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

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

Any help would be appreciated!

解决方案

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天全站免登陆