Skip to content

Commit

Permalink
add RewriteRules to handle the urls better
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeier committed Sep 30, 2011
1 parent 75f0212 commit 3b8ffbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<FilesMatch "\.(inc|jdb)$>
deny from all
</FilesMatch>

RewriteEngine On
RewriteRule ^setup(.*)$ setup.php?%{QUERY_STRING} [L]
RewriteRule ^index(.*)$ index.php?%{QUERY_STRING} [L]
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
include('src/inc/globals.inc');
if(!is_file(CONFIG_FILE)){
header("Location: setup.php");
header("Location: setup");
}
?><!doctype html>
<html>
Expand Down

0 comments on commit 3b8ffbf

Please sign in to comment.