Keyword

Redirect automatically URL with /item/ in the URL

  • lukass2000
  • lukass2000's Avatar Topic Author
  • Offline
  • Senior Member
More
2 weeks 15 hours ago #181323 by lukass2000
Hello,
I found this post here in the forum
With the information at the end of @Chandan Kumar, it works wonderfully for me with Joomla v3.10.12 and K2 v2.11

Login into Joomla! 3 Administration Console
Click on Components>>K2
Click on Parameters
Click on Advanced tab
Enable advanced SEF for K2 URLs and make your settings as attached below.

Now the my test URL 
blog/test-folder01/item/1078-test-article01.html
looks like this
blog/test-folder01/test-article01.html

this is great and works wonderfully 
But now both URL variants work, and I think there is so much double content for SEO, which is not good :(

Is there a way in K2 or via .htaccess to redirect the “old” URL automatically from
blog/test-folder01/item/1078-test-article01.html
to
blog/test-folder01/test-article01.html

So in the future, only the new and nicer URLs will be used, but the old ones would then have to redirected automatically.
Is there a possibility?

THANKS :)

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


Powered by Kunena Forum