.htaccess rewriterule,最后一段时间

时间:2016-05-18 10:46:43

标签: .htaccess mod-rewrite url-rewriting

我在.htaccess中设置了这条规则

RewriteRule (.*)/modular/ /$1?fq[ps_brand]=Modular [P,L,R=301]

但是当我到达页面时,例如example.com/search/feyundco,重定向不起作用。 其他品牌的相同规则就像魅力一样

 var totalRows = document.getElementById("gridposition").rows.length;

<div id="gridposition" style="width: 100%;">
    @{

        @grid1.GetHtml(mode: WebGridPagerModes.All,
                tableStyle: "table",
                headerStyle: "gridHead",
                footerStyle: "foot",
                rowStyle: "gridRow",
                alternatingRowStyle: "gridAltRow",
                htmlAttributes: new { id = "positionGrid" },
                fillEmptyRows: false,
                columns: grid1.Columns(
                           grid1.Column(format: @<text><input type="checkbox" name="ids" class="myCheckbox" value="@item.empId"></text>, header: "Select"),
                           grid1.Column("empId", header: "Id"),
                           grid1.Column("Name", header: "Name"),
                           grid1.Column("Age", header: "Age"),
                           grid1.Column(header: "Edit", format: @<text><a href="javascript:void(0)" onclick="editEmp(@item.empId)">Edit</a></text>),
                           grid1.Column("", header: "Edit", format: @<text>@Html.ActionLink("Edit", "EditEmployee", "BootStrap", new { id = item.empId }, new { target = "_blank", id = "editColumn" })</text>)
))
        <input type="submit" value="Delete" id="btnDelete" />
    }
</div>

问题出在哪里?的。最后,%26(&amp;)还是什么? 感谢

0 个答案:

没有答案