Skip to Content Skip to Menu

Updating URLs in 2.0

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 7 months ago #260301 by nant
Replied by nant on topic Updating URLs in 2.0

bigk wrote: Thanks. I'll use htaccess.


Is there a reason you are not using the built-in Joomla redirect component?

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

  • bigk
  • bigk
  • OFFLINE
  • Posts: 22
  • Thanks: 3
  • Karma: 0
9 years 7 months ago #260304 by bigk
Replied by bigk on topic Updating URLs in 2.0
The redirect component requires a line by line insertion of urls and I have thousands that will be affected by this change. Even if I use database, there's no guarantee of catching everything. Then Htaccess is preventative rather than curative.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260340 by krileon
Replied by krileon on topic Updating URLs in 2.0
The new URLs are structured as follows.

index.php?option=com_comprofiler&view=userprofile&user=USER_ID

All of our API calls will output profile URLs like this. The only reason for your URLs to still have "task" is possibly due to hardcoded URLs in HTML or those from external sources. Even menu items can be updated by simply editing them, selecting the profile CB menu type, and saving the menu item.

As for search engines they'll propagate the changes once the bot goes through your site again (pretty often for Google, but you can force this from Googles webmaster console). I believe you can also supply a root file to let Google know what URLs have changed via a sitemap.

Both task and view work though so your already existing search propagation will continue to function. So I don't fully understand your need to rewrite the URLs. If SEF is enabled then our router.php will already handle rewriting the task to view for you.

Sorry, I've little experience with htaccess rewrite rules. I suggest checking the htaccess documentation below.

httpd.apache.org/docs/2.0/mod/mod_rewrite.html#RewriteRule


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.

Moderators: beatnantkrileon
Powered by Kunena Forum