Skip to content

Commit

Permalink
Web: Added more URL rewrite rules for BDB
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Mar 31, 2017
1 parent 94d5e1e commit 6479a12
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions webapi/1/.htaccess
@@ -1,2 +1,16 @@
Header set Access-Control-Allow-Origin "http://dengine.net"

RewriteEngine on
RewriteBase /1/

# Be more RESTful.
RewriteRule builds/([0-9]+)/? builds.php?number=$1&format=html [L,QSA]
RewriteRule builds/index/? builds.php?format=html [L,QSA]
RewriteRule builds/feed/? builds.php?format=feed [L,QSA]
RewriteRule builds/latest/([-a-z0-9_]+)/([a-z]+)/? builds.php?latest_for=$1&type=$2 [L,QSA]
RewriteRule builds/stats/? builds.php?stats=dl [L,QSA]

# Add .php extension when needed.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

0 comments on commit 6479a12

Please sign in to comment.