I would like to ask one question:
How do i redirect requests to http://sub.example.com or http://sub.example.com to
http://sub.example.com/index.php? And I’m not asking about setting index.php as the DirectoryIndex, im asking to physically redirect the server to http://sub.example.com/index.php instead of just executing index.php with sub.example.com at the address bar. Are there any .htaccess or php serverside solutions? Thanks in advance
with htaccess for example
rewrites everything which is not a physical file or folder to the index.php
to do a hard redirect from / to /index.php do