请,我需要将htaccess文件重定向到查询参数:
my.domain/auth?name=Jirka&pass=password
要:
my.domain?command=auth&name=Jirka&pass=password
有人可以帮忙吗?
答案 0 :(得分:0)
重定向:
class SamplesFormSetHelper(FormHelper):
def __init__(self, *args, **kwargs):
super(SamplesFormSetHelper, self).__init__(*args, **kwargs)
self.form_method = 'post'
self.html5_required = True
self.layout = Layout(
Fieldset('',
'description',
'product', # foreign key
'DELETE', # delete django-dynamic-formset
css_class="formset_row"), # add-rows
)
self.form_tag = False
self.render_required_fields = False
您应首先匹配auth?name=Jirka&pass=password
的URI以及查询字符串auth
,如下所示:
name=Jirka&pass=password