message for regular redirect
This commit is contained in:
parent
8345a5ccb1
commit
e667931333
@ -34,6 +34,9 @@ module Apache
|
||||
#
|
||||
# r301 '/here', '/there' #=> Redirect permanent "/here" "/there"
|
||||
def r301(*opt)
|
||||
if opt.first && !opt.first.kind_of?(::String)
|
||||
raise "First parameter should be a String. Did you mean to wrap this in a rewrites block? #{opt.first}"
|
||||
end
|
||||
self << "Redirect permanent #{quoteize(*opt) * " "}"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user