Creating too many redirects on PHP script

I am having the free version of the 000webhost. Recently, I am trying to upload a simple website on 000webhost. There is a problem of having the index.php in a subfolder (Viewable). I am trying to redirect using the redirect option in the settings tab. But, whenever I visit the website, it redirects too many times.

i want to redirect from landing page to the viewable folder having the index.php

but what it does is, it redirects to
Capture

one more thing, the redirect option I mentioned above is also changing the .htaccess file in public_html accordingly.
Plz help…!!
Thanks in advance

@ckhawand can you look at this?

In the meantime @rustagiadi95 I have created an index.php in public_html with a meta redirect to /Viewable/index.php and it appears to be working.

1 Like

Issue fixed using .htaccess 301 redirect :slight_smile:

Redirect 301 /index.php /viewable/index.php