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!
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.
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
Related
I have a problem with SEF URLs in Joomla 2.5.7 and component K2 2.5.7.
Link with SEF turned off looks like:
index.php?option=com_content&view=article&id=1&Itemid=262
And with SEF on it looks like:
index.php/stavebnici
which is perfect!
But another page on this site:
index.php?option=com_k2&view=itemlist&task=user&id=2424:adamajana
looks with SEF on like:
index.php/component/k2/itemlist/user/2424-adamajana
my question is: Why is the first one stripped that much of the view and option and the other one is like that? Have you ever seen these problems and do you know how to fix them? Thank you so much for your answers!
Why ?
See George Wilson's comment.
How to fix it (to have nice SEF urls) ?
In my opinion you can:
Create a menu item for that specific article.
Use an extension like sh404SEF.
Hi after searching a lot I,m posting this question. When trying to add a tag in k2 item in joomla 2.5 backend, nothing happens. I have pressed enter and also tried with comma. I have tried with updating k2 latest version. But still same problem. I,m using ja_wall template, joomla 2.5. Also I,m getting this error after k2 upgrade
Model class cpanelModelCpanel not found in file
Can anyone help please.
This was a issue that was fixed in K2 v2.6.1. Alternatively delete the file ROOT/administrator/components/com_k2/models/cpanel.php. Which was effectively what the update did.
Also see this forum post on k2 for more info on the issue!!
I have the right solution. Go to phpMyadmin then to jos_k2_tags_xref and edit the structure. Set the ID as a Primary, (click on it) then go to edit the id row. Set "Default" as "None" or "Not Set" (I don't know how it is called in english but anyway it's the first possible selection) then check the "A_I" field (AUTO_INCREMENT) and then save. Now it should work :)
The problem was, ID of new k2 tags was 0 due to a wrong migration of k2 tables :)
This can also used to fix the same error when creating/copying/deleting k2 items if this cause problems.
I have a weird situation. A client of mine has a website having this kind of URL:
OLD URL: website.com/products/the+product_1.php
Now the new website that we developed has joomla 2.5 and has all content in there... So we have enabled Joomla SEF there. Now the issue is how to map the OLD urls to new Urls.
And the new Joomla 2.5 URL Looks like this:
New URL: website.com/products/digi/category/the_product_1
Now the issue is the search engines have indexed the OLD URLs and client does not want to loose the Page Ranking as you know how it matters.... They have about 18k URLs.
How best I can map the Old URLs to new URLs?
Please help?
Hm, why didnĀ“t you use the Joomla build in redirection manager?
http://docs.joomla.org/Help17:Components_Redirect_Manager
Sure it takes some time to build the links into it, but from my point of view this would be the best way. Then there is no need to develop something and everything can be managed in joomla.
You can also write a script which add links to the SQL DB if needed for this component.
The easiest way would be to create a system plugin that looks for the old product URL pattern and fires a redirect to the new URL. You should also look at this list of new and renamed events as some of them have changed since the plugin documentation was written.
I had a long ugly long URLs for Joomla articles. Being advised here to enable SEF, I got:
www.domain.com/cat1/subcat1/120-results-of-DES-project-in-2011
Nicer, but I also want custom short URL for specified article, like:
www.domain.com/des
Is this possible in Joomla 1.5? Simply adding rule to .htaccess is possible but not what I'd like, because:
I'd prefer that the short URL remains in the Location bar after the page is loaded
Joomla to use that short URL whenever the articles is clicked from news etc.
(P.S.: if it's not possible, then I'd be happy with some simple URL "aliaser" for Joomla, which would work similarly to .htaccess, but preferably with short URL remaining in the browsers' location bar.)
As Trev mentioned you need to turn on SEF URLs. In the admin, in the Site menu click on Global Configuration. In the Site configuration you should see a box for SEO settings. Turn on all 3 options unless you don't want the .html suffix, that one can be left off.
Now Joomla will create URLs like this -
www.yourdomain.com/parent-menu-alias/child-menu-alias/article-alias.html
If the menu item is linking directly to an article, then it would be -
www.yourdomain.com/menu-alias.html
Have you enabled SEF and htaccess in the Global Configuration? If you do then the URLs to any articles is controlled by the article's alias. e.g. if you want an article to be
http://mysite.com/my-url just open the article in the article manager and change the Alias field to my-url
I use 'No Editor' in Joomla with SEF URLs enabled. With no SEF enabled it's easy to know the URL by just getting the ID of the article. Something like:
Article 1 would be:
http://www.abc.com/j15/index.php?option=com_content&view=article&id=1&Itemid=1
Now if I have SEF switched on, I would get URLs that look like:
http://www.abc.com/j15/the-content.html
Is there a way inside Joomla where I can find out what the SEF URL for a particular page is?
Currently I add these articles to a menu, then from the front-end I get the SEF URL and then use it. I know the process is a little dumb, but I want to find out if there is a better way inside Joomla where you can get the SEF URL (using 'No Editor').
Upload a component, sh404sef or ARTIOsef, to the administrator panel. Here you can manage SEF URLs as well as the old URL and what new name you want to give it.