情境: 我创建了这个htacces文件来重定向子域。到目前为止它的确有效。
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.example\.net$ [NC]
RewriteRule ^(.*) http://example.net/%1/$1 [P,NC,QSA]
</IfModule>
问题:
它强制服务器请求不存在的任意index.php
。我所拥有的是index.html
,所以我得到了:
Error 404: /xyz/index.php was not found on this server
我尝试添加:
DirectoryIndex index.html index.php [L]
但只有第一个参数被接受,第二个被忽略(为什么?)。只要存在,AFAIK就应该接受其中任何一种。
答案 0 :(得分:0)
试试这个: 我复制这个并且正常工作。
if ($(area_1).is(':checked')) $(area_1).find('div').show();
你应该改变公共&#39;到你的文件夹。