Forum Moderators: phranque
DirectoryIndex directive will map this new request to the internal file at index.php RewriteRule and the request will be externally redirected to www.example.com/ DirectoryIndex directive will map this new request to the internal file at index.php RewriteRule and the request will be externally redirected to www.example.com/ RewriteCond looking at THE_REQUEST server variable. This ensures that the redirect happens only when index.php has been externally requested as a URL and not as a result of a prior internal rewrite or DirectoryIndex mapping.