Navigation Menu

Skip to content

Commit

Permalink
Homepage: Updated URL rewrite rules
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Mar 29, 2017
1 parent 77b6790 commit 45a4c86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web2/.htaccess
Expand Up @@ -10,18 +10,21 @@ RewriteBase /
RewriteCond %{HTTP_HOST} www\.dengine\.net [NC]
RewriteRule ^(.*)$ http://dengine.net/$1 [R=301,QSA,L]

# Redirect builds.
RewriteRule ^builds$ http://api.dengine.net/1/builds [R=301,L]

RewriteRule ^build([0-9]+)$ http://api.dengine.net/1/builds?number=$1&format=html [R=301,L]
RewriteRule ^build([0-9]+)/?$ http://api.dengine.net/1/builds?number=$1&format=html [R=301,L]

# Static redirects.
RewriteCond %{REQUEST_URI} support
RewriteRule ^(.*)$ talk/categories/technical-support [R=301,L]

RewriteCond %{REQUEST_URI} forums.*
RewriteRule ^forums(.*)$ talk$1 [R=301,QSA,L]

# Remove trailing slash.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.*)/$
RewriteRule ^(.*)/$ $1 [R=301,L]

# Append .php extension.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Expand Down

0 comments on commit 45a4c86

Please sign in to comment.