Helicon Ape web site tab: .htaccess folder names updated
This commit is contained in:
parent
45d1cfddf6
commit
b472a1d6f4
2 changed files with 13 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
<asp:HyperLink ID="lnkEditHeliconApeFolder" runat="server"
|
<asp:HyperLink ID="lnkEditHeliconApeFolder" runat="server"
|
||||||
NavigateUrl='<%# GetEditControlUrl("edit_htaccessfolder", Eval("Path").ToString()) %>'
|
NavigateUrl='<%# GetEditControlUrl("edit_htaccessfolder", Eval("Path").ToString()) %>'
|
||||||
CssClass="NormalBold">
|
CssClass="NormalBold">
|
||||||
<%# Eval("Path")%>
|
<%# GetHtaccessPathOnSite((string)Eval("Path")) %>
|
||||||
</asp:HyperLink>
|
</asp:HyperLink>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
|
@ -359,5 +359,17 @@ namespace WebsitePanel.Portal
|
||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected string GetHtaccessPathOnSite(string path)
|
||||||
|
{
|
||||||
|
path = path.Replace('\\', '/');
|
||||||
|
if (!path.EndsWith("/"))
|
||||||
|
{
|
||||||
|
path += "/";
|
||||||
|
}
|
||||||
|
|
||||||
|
path += ".htaccess";
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue