Skip to content

Commit

Permalink
Try to prefer index.php over index.html in the same directory
Browse files Browse the repository at this point in the history
Add JS redirect if that fails (HTTP-based redirects are disabled by
default in more recent Firefox versions).
  • Loading branch information
danimo committed Apr 24, 2013
1 parent 9dde43d commit a86fe79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ RewriteRule ^remote/(.*) remote.php [QSA,L]
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"> window.location.href="index.php"; </script>
<meta http-equiv="refresh" content="0; URL=index.php">
</head>
</html>

0 comments on commit a86fe79

Please sign in to comment.