]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/redirect.mdwn
6296c3df125565bfb7975eacfa71684f40a0ed9a
[ikiwiki.git] / doc / bugs / redirect.mdwn
1 I suppose this isn't technically a bug, but whetever.
2
3 I want symbolic links to be rendered as HTTP redirects. For example,
4 if we do this,
5
6     touch foo.mkdwn
7     ln -s foo.mkdwn bar.mkdwn
8     git push baz.branchable.com
9
10 then the following command should print 302
11
12     curl -o /dev/null -s -w "%{http_code}" http://baz.thomaslevine.com/bar/
13
14 > An interesting idea, but it conflicts somewhat with wanting symlinks to be
15 > treated as the referenced file when it's safe to do so, which would be
16 > great for [[todo/git-annex support]], and also good to avoid duplication
17 > for files in system-wide underlays.
18 >
19 > Also, I don't think this is possible without help from the web server
20 > configuration: for instance, under Apache, I believe the only way to get
21 > an HTTP 302 redirect is via Apache-specific `.htaccess` files or
22 > system-level Apache configuration.
23 >
24 > In current ikiwiki, you can get a broadly similar effect by either
25 > using \[[!meta redir=foo]] (which does a HTML `<meta>` redirect)
26 > or reconfiguring the web server. --[[smcv]]