Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当有人来访时
http://127.0.0.1/something
我想将他重定向到
http://127.0.0.1/something/index.php
使用.htaccess。
提前致谢!
我终于找到了怎么做。
警告:我没有使用 mod_rewrite 的经验,所以这可能不是最好的解决方案。不过它对我有用。
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUESTFILENAME} !-f RewriteRule ^(.*)/$ /$1/index.php [L] </IfModule>
我正在使用private TreeNode root;创建动态树。
private TreeNode root;
我用
<p:tree value="#{bean.root}" var="node"> <p:treeNode> h:outputText value="#{node}" />