I want to change the root of my website with php functions.
This is my website (mysite.com)
This website using (current root document) and loading from index.php
like this
mysite.com /
index.php
folder1
folder2
now I want when we open (mysite.com) show index.php inside of folder1.(change the root to /folder1/ )
I can use redirect but my address will be like this mysite.com/folder1
but I want this website (mysite.com
) using /folder1/
as root directory with out we want to user (mysite.com/folder1
)
What should I do? What is the functions for this to use in index.php
(to use folder1 as root directory)?