Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Updating URLs in 2.0

  • bigk
  • bigk
  • OFFLINE
  • Posts: 22
  • Thanks: 3
  • Karma: 0
9 years 9 months ago #260191 by bigk
Updating URLs in 2.0 was created by bigk
Good CB people,

Just upgraded from 1.9.1 to 2.0.7. Joomla version is 3.4

My current user profile URLs are set as follows:
index.php?option=com_comprofiler&task=userprofile&user=XXXX&Itemid=WWWW

The new user profile URLs are set as follows:
index.php?option=com_comprofiler&user=XXXX&view=userprofile&Itemid=WWWW

New sef and non-sef URLS are being generated for existing links and profiles.

My question is how can I prevent these duplicate URLS? How can we redirect new urls to the existing? Disabling Joomsef does not help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago #260221 by krileon
Replied by krileon on topic Updating URLs in 2.0
Change "task" to "view". That's the only change to be complaint with Joomla URL usage. We support both at this time though as we just map task to view internally so your URLs won't break.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • bigk
  • bigk
  • OFFLINE
  • Posts: 22
  • Thanks: 3
  • Karma: 0
9 years 9 months ago #260237 by bigk
Replied by bigk on topic Updating URLs in 2.0
Kyle,

Are you suggesting that we replace "task" in existing links? We have hundreds of those from many years and I wont want to miss my rankings.

I was hoping there's a way to not create new links for existing items or redirect to the old.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago #260240 by krileon
Replied by krileon on topic Updating URLs in 2.0

Are you suggesting that we replace "task" in existing links? We have hundreds of those from many years and I wont want to miss my rankings.

Yes, task doesn't exist in Joomla. It hasn't since Joomla 1.6 and is now view. CB supports both though so you can do whatever you like really.

I was hoping there's a way to not create new links for existing items or redirect to the old.

We already internally support both so you don't have to do anything at all. Eventually the task to view mapping will be removed though so at some point you'll need to change the URLs over or add an htaccess rule to change them before they reach Joomla.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: bigk

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

  • bigk
  • bigk
  • OFFLINE
  • Posts: 22
  • Thanks: 3
  • Karma: 0
9 years 9 months ago #260248 by bigk
Replied by bigk on topic Updating URLs in 2.0
Thanks. I'll use htaccess.

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

  • bigk
  • bigk
  • OFFLINE
  • Posts: 22
  • Thanks: 3
  • Karma: 0
9 years 9 months ago - 9 years 9 months ago #260295 by bigk
Replied by bigk on topic Updating URLs in 2.0
FOlks, I could use help. How do I go about using the right htaccess redirect code if I want to redirect

from: index.php?option=com_comprofiler&task=userprofile&user=XXXX
to: index.php?option=com_comprofiler&user=XXXX&view=userprofile

Here's what I have at the moment:
RewriteRule ^option=task=userProfile&user=(.*)$ index.php?option=com_comprofiler&view=userprofile&user=$2 [L]
Last edit: 9 years 9 months ago by bigk.

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

Moderators: beatnantkrileon
Powered by Kunena Forum