This website redirect you too many times

am using this code to my index page landing page

php_flag output_buffering on
IndexIgnore *
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteRule ^$ /browser-games/ [L]
# HTID:6136692: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?(www.gamehup.com|gamehup.com|gamehup.000webhostapp.com)(/)?.*$      [NC]
RewriteRule .*.(.*)$ https://gamehup.com/ [R,NC]
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:6136692:

but for some reason it says that
this website redirect you too many times
how can i fix this

What are the URLs from which you want to redirect and to which you want to redirect.

i want to redirect from

http://gamehup.com to https://gamehup.com/browser-games/index

Are you using Cloudflare for an SSL certificate? (can’t check, website is blocked at my school) If so, follow the Cloudflare HTTP-HTTPS tutorial rather than the .htaccess tutorial. HTAccess redirection
doesn’t work properly for me on the Zyro builder, but this tutorial worked. How To Redirect HTTP to HTTPS Using Cloudflare