#995 Posted in ‘Route 66’

Latest post by Lefteris Kavadas on Friday, 27 January 2023 13:31 EET

Sean Carney
I am wondering if it is possible to redirect Joomla category URLs to the URL for Page Builder pages instead of the URL for the Joomla Component with Route 66?

I am using 4SEF, but am unable to get some URLs that I am really wanting. We are using SP Page Builder to create our Category pages and are happy with the URLs. We also have pretty much duplicate pages being created by the Joomla Component. Those pages we do not even want people to see. These pages have URLs as follows:

PageBuilder URLS:
SEF URL: lchaim
non-SEF URL: index.php?option=com_sppagebuilder&Itemid=1652&id=3140&view=page
Joomla SEF URL: lchaim

Joomla Content URLs:
SEF URL: lchaim/
non-SEF URL:
index.php?option=com_content&id=146&view=category
Joomla SEF URL: Component/content/category/lchaim

We want to use the URLS coming from PageBuilder.

On our site we are placing RAXO modules as Joomla components using SP Page Builder. If we turn on the display of Categories on any of these RAXO modules and also the "Categories as Links" option to Yes, then the Category Links are rewritten to include the / at the end of each category URL. That then does not direct to the Page Builder page but instead directs to the Joomla component category page.

It is not possible for 4SEF to redirect (or rewrite) the URL to be /lchaim instead of /lchaim/ because no matter how many times you redirect the URL with the / at the end, the URL will be recreated. So, the modules are all pointing to the pages we do not even want anybody to see.

Can Route 66 help with this?

Also, can Route 66 support URLs with nested categories. Such as
/lchaim/recipes/only-oatmeal-and-bananas-healthy-and-delicious-breakfast-in-15-minutes ?

Lefteris Kavadas
Hi Sean,

Normally, since you don't want to use the categories at all you should unpublish or remove the categories and update your site to use SP PageBuilder links, not category links.
This is the most straightforward solution.

Here are some other "hacky" solutions I can think:

1. Use the Joomla core redirects component to add manually redirects for each category to the appropriate SP page. I am not sure of the component supports trailing slash redirects. You can give it a try.
2. Set the redirects in the server layer (Apache or Nginx).
3. Try the free version of Route 66 and enable the option "Add trailing slash to menu links". This will add a trailing slash to menu items you select. Of course this requires that you have menu links for those categories.

Regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review