• Home
  • Get help
  • Ask a question
Last post 2 hours 16 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67777
All time tickets 10473
All time avg. posts per day 21

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.

#7246 – Homepage - ERR_TOO_MANY_REDIRECTS

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.
Wednesday, 10 June 2020 09:49 UTC
[email protected]
HI team,

I need my homepage and all of my menu items set to access level: Registered.

This is because this site is for a company intranet and must require a login to enter the site.

When I have sh404sef enabled, and try to visit my homepage, I see the following error,

This page isn’t working domain.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS


But if I disable sh404sef, the expected behavior happens (homepage displays a login screen, which is great).

How can I delete or remove any homepage redirects from sh404sef to avoid this loop?

I could not locate any instances of a homepage redirect in the side panel of sh404sef (SEF URL, Aliases, Short URLs).

After reading online forums, I have also tried to add a menu item for a Login Form and made that access level: Public. But that did not solve this issue either. It was only when I have sh404sef disabled does my homepage displays the login form correctly.

Could you please take a look and offer guidance/solution?

Joomla Admin: http://xxxx.me/administrator/index.php?option=com_sh404sef&c=default
Username: xxxx
Password: xxxx

Please try to reach the homepage with sh404sef enabled and then disabled.

Thanks,

Tuan
Wednesday, 10 June 2020 10:19 UTC
wb_weeblr
Hi

The problem was caused by duplicate URL. When one accesses the home page, Joomla redirects to the log-in page, which is /log-in.

In your case, there were 2 versions of that page, 2 duplicates:



By making the second one, the one you created with regular access level, the "main" one, Joomla can access it and it works normally:



Can I ask why you use sh404SEF on an intranet, that is with no search engines indexation and such?

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Wednesday, 10 June 2020 10:30 UTC
[email protected]
Thanks for your help but now when I click on "Don't Have an Account" for users to register, nothing happens if sh404sef is enabled.

Do you know how to fix this?

http://xxxx.me/log-in/

To answer your question, the reason I use sh404sef on a intranet is because we deployed a backup with many standalone Joomla articles, that caused many broken links and I liked the redirect to similar URL feature and also the Joomla articles would not look clean, eg. component-198-article-344 etc, so my team wanted cleaner URLs which sh404sef provided.

Thanks
Wednesday, 10 June 2020 10:35 UTC
wb_weeblr
Hi

Thanks for your help but now when I click on "Don't Have an Account" for users to register, nothing happens if sh404sef is enabled.
Same thing: as the entire site requires Registered access, so does that page.

Something happens when you click that link: you are redirected to the same log-in page.

You can make non-sef URL with menu item id 829 the main one to solve that.



Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Wednesday, 10 June 2020 10:44 UTC
[email protected]
Thank you, this seems to work now.

One question as this is my development site and need to replicate on my production site.

In the case of these duplicates, how did you know which one to choose and make it the main one to fix the issue?

Thanks
Wednesday, 10 June 2020 10:52 UTC
wb_weeblr
Hi

In the case of these duplicates, how did you know which one to choose and make it the main one to fix the issue?
All this is related to the menu item used by JOomla. In the non-sef URLs, you can see the variable Itemid=101 or Itemid=829.

Those are menu items id. 101 is by default the menu item id of the home page. 829 is the menu item id of the login-logout you created (you can find the ID on the menu items listing).

So by changing the "main" url from Itemid=101 to Itemid=829, we're telling sh404SEF that when someone wants to go to /log-in, that page should be displayed with the context, the access level, the modules, the template assigned to menu item 829, the one you created for that.

Usually, you'll have only a couple of items in the duplicate lists anyway, just change to the other one, the one with another itemid.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Wednesday, 10 June 2020 10:55 UTC
[email protected]
Okay, thank you so much for your help.

Take care
Wednesday, 10 June 2020 11:09 UTC
wb_weeblr
Hi

You too! Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our Accelerated Mobiles pages plugin for Joomla - without AMP, you're missing out on mobile visitors!



Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
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.