SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Changing urls

3 years 4 months ago #125412 by marchy
Changing urls was created by marchy
HI Guys,

I have a Joomla website which was getting very big with over a thousands menu, over 20,000 zoo items and a lot of modules. The site was getting slower and slower.

I hired someone to redo the structure of the site so there would be less db called. The whole structure got changed. We are testing it and it is really promising. Now cause of the restructure of the site. There are pages (like over 20,000 zoo items) which does not have the same urls.

Example: the live site has this "directory/item/amari.html" as the restructure has "amari.html" so for all zoo items "directory/items/" would have to be added.

He had tried to fix it with Joomsef but they do not have a "per app override". He also said that the only extension that can do this is sh404 but he does not seems to trust it.

He also thinks that maybe it can be done via the htaccess but he does not have the knowledge to do so.

I am not very hot of doing over 20,000 redirect. My website is very successful and I do not want it to crash by testing redirect like this.

Any suggestions?

Please Log in to join the conversation.

3 years 4 months ago #125453 by Nick
Replied by Nick on topic Changing urls
Hi Marchy,

Do you guys have a test site that you can test this on?

How are you getting just "amari.html"? Are you using menu items or a routing plugin?

Looking forward to helping.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

3 years 4 months ago #125454 by Valentin
Replied by Valentin on topic Changing urls
Hi marchy,

Which specific changes made the people you hired? The reestructured URLs means something major happened during this process.

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

3 years 4 months ago #125463 by marchy
Replied by marchy on topic Changing urls
A routing plugin
We only have a direct menu access to the higher level of that zoo app
The rest of the URLs are generated by joomlasef component.


Yes it is on a test site.

Please Log in to join the conversation.

3 years 4 months ago #125467 by Valentin
Replied by Valentin on topic Changing urls
I guess JoomlaSEF changed the URL's structure.

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

3 years 4 months ago #125472 by marchy
Replied by marchy on topic Changing urls
this is how it works.

The new structure is this.

There is an app for the article (regular content) and one app for the zoo.

The jomsef component allows us to only work with one app not 2 so we cannot apply it on both.

the url params are applied widely, on all apps. And we need them individually.
Maybe a different component can manage it
But I think there are not many sef components
Maybe even can be done without it, only using htaccess?

Please Log in to join the conversation.

3 years 4 months ago #125477 by Valentin
Replied by Valentin on topic Changing urls
.htaccess can manage redirections, however in this case still won't be able to change the way Joomla generate the structured URLs.

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

3 years 4 months ago #125481 by marchy
Replied by marchy on topic Changing urls
any idea of a solution for this?

Please Log in to join the conversation.

3 years 4 months ago #125491 by Nick
Replied by Nick on topic Changing urls
Hi Marchy,

Whoever created the routing plugin would need to adjust it to include the directory/item part as you'd like it and/or the menu item structure would have to change to reflect the directory/item part.

We're doing something similar with www.ostraining.com/classes/ . Click on a category (e.g. Joomla) and then a class and less to see how the URLs are generated. Your developer can check out our code at github.com/OSTraining/OSCampus/blob/master/src/site/router.php , since it's open source.

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: marchy

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!