Permalink
Browse files

Fixed Rack::Rewrite map typo

  • Loading branch information...
1 parent eb55def commit 212a29dea87fc42aec73f4d513409b89a8ae6f74 @ixti committed Aug 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 import.rb
View
@@ -44,7 +44,7 @@
new_url = "/#{time.strftime("%Y/%m/%d")}#{'/' + slug if slug}"
nginx_rewrite.puts "rewrite ^/(?p=|archives/)#{post_id}$ #{new_url} permanent;\n"
- rack_rewrite.puts "r301 %r{/^(?:\\?p=|archives/)$#{post_id}}, '#{new_url}'\n"
+ rack_rewrite.puts "r301 %r{/^(?:\\?p=|archives/)#{post_id}$}, '#{new_url}'\n"
begin
newpost = File.open(path,'w')

0 comments on commit 212a29d

Please sign in to comment.