Keyword

remove component/k2/ from tag url

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 9 months ago - 6 years 9 months ago #166493 by solan
remove component/k2/ from tag url was created by solan
hi
i want to remove

component/k2/

from

site.com/component/k2/tag

how can i do that or how can i change

site.com/component/k2/tag

to

site.com/tag ?

thank you
Last edit: 6 years 9 months ago by solan.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #166495 by Franz Heine
Replied by Franz Heine on topic remove component/k2/ from tag url
Hi,

here is the solution:

forum.joomla.de/index.php/Thread/4965-Router-Probleme-in-Joomla-3-8-4/?postID=32583#post32583

Its in german. If you have problems. I can translate it later.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 9 months ago #166496 by solan
Replied by solan on topic remove component/k2/ from tag url
thank you

it works and it changed path to 3.8.3
//////

i have a another question

i want to have unique url for tag not many.
like this:

site.com/tag1

do have you any suggestion for this?

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #166497 by Franz Heine
Replied by Franz Heine on topic remove component/k2/ from tag url
Hope i understand it right.

Go to the "Parameters" of k2 -> than to section "Advanced" -> scroll down to "Advanced SEF Settings" -> "Enable advanced SEF for K2 URLs" should be "yes" -> type in "Prefix for tag URLs" your prefix for ex. tag-shop etc.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 9 months ago #166498 by solan
Replied by solan on topic remove component/k2/ from tag url
thanks for answer

but it is not what i meant.

Please Log in or Create an account to join the conversation.

  • 野草工作室
  • 野草工作室's Avatar
  • Offline
  • New Member
  • 专业Joomla建站
More
6 years 9 months ago #166513 by 野草工作室
Replied by 野草工作室 on topic remove component/k2/ from tag url
You want to achieve this functionality, but do not want to install additional SEO extensions
Then you can only create a K2 TAG type menu item for each of your TAG tags

野草工作室提供专业Joomla建站服务
www.ycway.com

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #166515 by JoomlaWorks
Replied by JoomlaWorks on topic remove component/k2/ from tag url
@solan

Create a new hidden menu (group). In there, add a new "menu item" of K2 Category type. When you create this menu item, simply add a name and the menu alias (e.g. "show"). Because this menu item is newly created and thus has a higher ID in the menu system, K2 will use it to replace /component/k2 to /show.

See how we utilize this K2 router trick in getk2.org. Notice the tag URLs in the blog for example: getk2.org/blog

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 9 months ago #166517 by solan
Replied by solan on topic remove component/k2/ from tag url
i thank you it works.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 9 months ago #166518 by solan
Replied by solan on topic remove component/k2/ from tag url
i have one more question


i want to remove category url from item url like WordPress

i mean

i want to make short or change my urls from


site.com/category/item


to

site.com/item



how can i do that?



tnx in advance

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #166628 by Krikor Boghossian
Replied by Krikor Boghossian on topic remove component/k2/ from tag url
Hello,

In order to completely strip the item's prefix you need an SEO/SEF extension which supports K2.
You can look at Sh404SEF (an additional K2 plugin is needed).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum