URL ã転éãã¦ãªã³ã¯å URL ãåãããªãããæ¹æ³ 2008-11-27-1 [Tips][Programming] URL ã転éãã¦ãªãã¡ã©ã¼ãåãããªãããæ¹æ³ã«ã¤ãã¦ã (1) CGI ã§ãªãã¤ã¬ã¯ãããæ¹æ³ã perl ã®ä¾ã r.cgi : #!/usr/bin/perl print "Content-type: text/html\nRefresh: 0; URL=" .substr($ENV{PATH_INFO}.(($q=$ENV{QUERY_STRING})?"?$q":""),1)."\n\n"; (ãµã³ãã«ãªã®ã§ãuse strict ã¨ãããããã®ã¯ã¨ãããããªãã§ã) http://example.com/r.cgi/http://blog.example.com/?d=080101 â http://blog.example.com/?d=080101
{{#tags}}- {{label}}
{{/tags}}