redirection

I want to when I open the site http://helish.epizy.com/ to automatically redirect to http://helish.epizy.com/curs.php
In htaccess I wrote DirectoryIndex parcer.php and nothing!
Pls help me!

If you have a DirectoryIndex parcer.php, it will try to load the file parcer.php as the directory index. However, if you want to use the file curs.php as your directory index, you should use the line DirectoryIndex curs.php instead.

Also, note that DirectoryIndex will not redirect people, it’s just used to select the main file to load for a given directory. If you really want to redirect people, I’d recommend removing the .htaccess file and creating an index.php file with the following content:

<?php
header('Location: http://helish.epizy.com/curs.php');

*I’d recommend removing the .htaccess file and creating an index.php file with the following content:

<?php header('Location: http://helish.epizy.com/curs.php');* I tried I got "TOO MANY REDIRECTS" Ill give this link to all people [helish.epizy.com/curs.php](http://helish.epizy.com/curs.php "helish.epizy.com/curs.php")! Thx for support and for great free host

how to do a redirect from helish.epizy.com/curs.php to http://helish.epizy.com/curs.php?

@helish_88 said:
how to do a redirect from helish.epizy.com/curs.php to http://helish.epizy.com/curs.php?

The way described above should work, I’m not sure why you got the redirect loop. I just copied the content exactly as shown to the index.php file and it’s working perfectly.