forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
27 lines (20 loc) · 988 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# dlang.org .htaccess file (local Apache configuration)
# Enable mod_rewrite
RewriteEngine On
# Indicate that this directory maps to the root
# directory of the domain.
RewriteBase /
# Phobos rewrites:
# Package files are now generated to std_foo.html
# instead of std_foo_package.html. This change was
# done to preserve the links to std.algorithm,
# std.range etc. after they were split into packages.
# However, we need redirects for packages in
# previous stable releases (namely, std.container).
RewriteRule ^(phobos(-prerelease)?/std_container)_package\.html $1.html [R=301,L]
Redirect 301 /COM.html http://wiki.dlang.org/COM_Programming
Redirect 301 /dll.html http://wiki.dlang.org/Win32_DLLs_in_D
Redirect 301 /htomodule.html http://wiki.dlang.org/Converting_C_.h_Files_to_D_Modules
Redirect 301 /memory.html http://wiki.dlang.org/Memory_Management
Redirect 301 /windows.html http://wiki.dlang.org/D_for_Win32
RewriteRule ^changelog(.html)?$ changelog/index.html [R=301,L]