Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web: Added more URL rewrite rules for BDB
[ci skip]
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |