Problem with Joomla Redirects

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Letball
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Apr 17, 2022 10:46 pm

Problem with Joomla Redirects

Post by Letball » Mon Jun 20, 2022 5:55 pm

Hello there :)

Got a problem. I migrated from J3 to J4 like a month ago, I am redesigning an old website but currently in use, so the styles, etc. But maintaining most of the articles, etc. (changing styles, ofc). So the thing is, in the old website the redirects are managed with sh404SEF component. In the new site we don't use this component and we use the J4 redirects component, maintaining the same links, etc. for the SEO.

The problem comes here, for example, in a button I point into an existing article with its URL (I tried the friendly and the non friendly), I land into the article but it shows the non friendly URL: https://www.pruebasieb.info/component/c ... mp;lang=es

In the old website, the button links to the article and it shows the friendly URL: https://www.invertirenbolsa.info/Redes- ... -info.html

So I don't know why... What I think it's weird is, in the Redirect component in Joomla 4, I see the non friendly URLs inside "New URL" while the friendly URLs are inside "Expired URL" field... I thought on changing that to the opposite, but maybe the SEO would be affected?

And yeah, in global configuration, the Friendly URLs and URL Rewritting options are enabled and also I changed web.config.txt to web.config, and I already had .htaccess ...

So in the Joomla 4 (first link) is the same article, it should be like the second link, but it's not....

Any ideas of what's wrong...?

Thank you (I can't upload pics so that's why I wrote the links....)

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 12043
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Problem with Joomla Redirects

Post by sozzled » Mon Jun 20, 2022 6:46 pm

See viewtopic.php?f=816&t=991546. Does this help?

web.config is not used with Apache servers; there is no need for this file. Apache uses .htaccess.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 41558
Joined: Sat Apr 05, 2008 9:58 pm

Re: Problem with Joomla Redirects

Post by Webdongle » Mon Jun 20, 2022 7:06 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28977
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Problem with Joomla Redirects

Post by Per Yngve Berg » Tue Jun 21, 2022 8:53 am

In your first link you don't have a Menu Item.

Letball
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Apr 17, 2022 10:46 pm

Re: Problem with Joomla Redirects

Post by Letball » Tue Jun 21, 2022 8:47 pm

Hey everyone, thanks for your replies... Nothing of that works... And about the .htaccess was already done. The thing is, now I get a friendly URL but I don't know why is not the same (https://www.pruebasieb.info/redes-sociales.html?lang=es) as it is in the old website (https://www.invertirenbolsa.info/Redes- ... -info.html) .....

So the first link should be like the second (with different domain now ofc). I am pointing to the same article but the link is not the same. I think is because the old website uses the sh404SEF component in Joomla 3, while the Joomla 4 site is using the Joomla redirect component... I think something is not well configurated there (I didn't touch any link since migration, so...)

Thank you

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28977
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Problem with Joomla Redirects

Post by Per Yngve Berg » Tue Jun 21, 2022 9:04 pm

Was your old site also a Multi Language Site?

Letball
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Apr 17, 2022 10:46 pm

Re: Problem with Joomla Redirects

Post by Letball » Tue Jun 21, 2022 9:56 pm

Per Yngve Berg wrote:
Tue Jun 21, 2022 9:04 pm
Was your old site also a Multi Language Site?
Hey, no. On the control panel there was something installed about Spanish and English (to every article you can assign Spanish, English or All). But all the articles are in Spanish and for a user, the website is only in Spanish (we also want now in Joomla 4 to make it multilanguage...

About the links... Maybe the links are different because of the use of SP Page Builder and Helix Ultimate? I don't think so but just giving you the info...

Thank you

Letball
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sun Apr 17, 2022 10:46 pm

Re: Problem with Joomla Redirects

Post by Letball » Wed Jun 22, 2022 2:56 pm

Hi again, I added 3 pics in my Joomla so I can share them for a better understanding...

First of all, I tried change in Joomla Redirect the NEW URL per EXPIRED URL (as I see the new is like the unfriendly and the expired is the friendly url...), but that didn't help, just the opposite, the page gave 404 error.

So I think that might be because with that Joomla 4 http://www.pruebasieb.info/, I am using Helix and SP Page Builder (it was not used in the old website https://www.invertirenbolsa.info/). So I think that's what is making the link problem... So an example, go to the first website, the new, and go to the footer and look for "AVISO LEGAL", the next article appears with the URL showed in the next pic: https://www.pruebasieb.info/images/ieb_ ... ongURL.jpg

If you go to the second website, the old one and currently working, go also to the footer and look for the same button "AVISO LEGAL". The same article will open showing the FRIENDLY URL showed in the next pic: https://www.pruebasieb.info/images/ieb_ ... ghtURL.jpg

So the article is the same, and in the new website, I put in the AVISO LEGAL button made by SP Page Builder the same link of the old website, but it appears the new non friendly link http://www.pruebasieb.info/component/co ... Itemid=100 ..... That's what I wanna solve... Here you have a pic of how this page links look in my new Joomla 4 redirect component: https://www.pruebasieb.info/images/ieb_ ... direct.jpg

Thank you very much for your help


Post Reply

Return to “Administration Joomla! 4.x”