Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
pretify HTML results via bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Sep 27, 2012
1 parent 3de479b commit e9ddb56
Show file tree
Hide file tree
Showing 16 changed files with 8,972 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /db-to-api/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#db + table + column + value
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^/]+)/([^/]+)/([^/]+)/([^/]+)\.([a-zA-Z]{3,4})$ index.php?db=$1&table=$2&column=$3&value=$4&format=$5 [L,QSA]

#db + table + #id
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^/]+)/([^/]+)/([^/]+)\.([a-zA-Z]{3,4})$ index.php?db=$1&table=$2&value=$3&format=$4 [L,QSA]

#db + table
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^/]+)/([^/]+)\.([a-zA-Z]{3,4})$ index.php?db=$1&table=$2&format=$3 [L,QSA]

#all else
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]
</IfModule>
Loading

0 comments on commit e9ddb56

Please sign in to comment.