0
votes
4answers
3k views

How to rewrite index.php (and other valid default files) to the document root using mod_rewrite?

I would like to redirect index.php, as well as any other valid default file (e.g. index.html, index.asp, etc.) to the document root (which contains index.php) with something like this: RewriteRule ...