The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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)