Making SEF URLs with K2 v2.6.5

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:12:25

问题


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!


回答1:


from my experience, it is very difficult to control k2 url's using joomla core SEF. you will probably have to install a 3rd party component.

i eventually installed artioJoomSEF and managed to sort it out.

you can also try aceSEF (http://www.joomace.net/joomla-extensions/acesef-joomla-seo-sef-urls), which i find easier to work with.




回答2:


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



来源:https://stackoverflow.com/questions/15767743/making-sef-urls-with-k2-v2-6-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!