Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Redirect error on parent page: ERR_TOO_MANY_REDIRECTS
#1
Hi, 

I'm having an ERR_TOO_MANY_REDIRECTS issue.

I've set up a gallery page on a website. This gallery has several sub-galleries (let's say gallery1 and gallery2). My link structure in the main menu is:

gallery
  • gallery1
  • gallery2

Now "gallery" is not a page users can visit. I did create a page in the GS admin panel in order to show "gallery" as parent of "gallery1" and "gallery2" in the main navigation. But the page "gallery" is empty. I have a bit of JavaScript that prevents its href='#' to do anything.  "Gallery" really only serves as parent in the main menu.

To prevent users from manually visiting the page by typing www,domain,de/gallery, I set a redirect in .htaccess from "gallery" to "gallery1", like so:
RedirectMatch 301 ^/gallery/$ /gallery/gallery1/

In the URL I can see that this redirect points me to the right address.

However, I get the error ERR_TOO_MANY_REDIRECTS. The error persists if I remove the redirect rule from htaccess. 

How can I fix the redirects error? Is there a better way to put "gallery" as parent in the main menu?

Greetings,
Marty
Reply


Messages In This Thread
Redirect error on parent page: ERR_TOO_MANY_REDIRECTS - by Marty - 2020-04-10, 14:28:56



Users browsing this thread: 1 Guest(s)