• Home
  • Get help
  • Ask a question
Last post 11 hours 41 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67911
All time tickets 10496
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1323 – Rewriting url of component (JooDB)

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 05 November 2015 14:01 UTC
williamkcp
Hi guys,

I've been struggling with this several times now and I really hope you can help me out:
I'm using a component on our site that uses tables within the Joomla DB to generate content.
There are over 22.000 items so imagine managing/updating this with Joomla...

The problem is with the url generation, the extension has two views, catalog and article.
Catalog can be compared to category/blog view and article to item view.

The catalog's urls look like
/en/chiptuning

An item looks like:
/en/chiptuning/article/1-audi-a4-2-0-tfsi-b8-cdnc-xxxx-2008

We would like to have /article removed from the url to make it look cleaner:
/en/chiptuning/1-audi-a4-2-0-tfsi-b8-cdnc-xxxx-2008
(1- can stay to prevent problems with duplicate urls)

I was hoping to get this fixed with/by SH404sef, is this possible?
Of course I've tried in .htaccess but I haven't found the solution yet.

Thanks a lot for your help!
 
Friday, 06 November 2015 09:19 UTC
wb_weeblr
Hi

Do your component have a router.php file for Joomla routing? this is where the URL construction is decided upon. It should have been included in the creation of that custom component and what you need to modify to include or not the /article/ bit.

ALternatively, you can also write a similar plugin specific to sh404SEF, but just fixing your router.php should be enough.

Rgds
 
Friday, 06 November 2015 13:31 UTC
williamkcp
Thank you for giving directions, the component does indeed have it's own router.php.
I'm not sure how to modify it but this is a start.

Have a nice day!
 
Friday, 06 November 2015 13:57 UTC
wb_weeblr
Hi

Yes, as "article" looks like a fixed strings, it should be easy to locate it in router.php where it's inserted and comment it out.

Remember to purge sh404SEF URLs after each change to router.php is made, to have new URLs recreated.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.