Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php htaccess文件配置多个<;档案>;(尚未)支持的参数_Php_.htaccess - Fatal编程技术网

Php htaccess文件配置多个<;档案>;(尚未)支持的参数

Php htaccess文件配置多个<;档案>;(尚未)支持的参数,php,.htaccess,Php,.htaccess,所以。。。我需要专业人士的一点帮助(那将是你们这群了不起的人) 我正在创建一个php网站。。。它正处于开发阶段,但还不起作用。当我尝试访问网站时,我收到以下消息: “内部服务器错误。服务器遇到内部错误或配置错误,无法完成您的请求。有关此错误的详细信息,请参阅服务器错误日志。” 这是错误日志中所说的: “[Tue Aug 05 08:13:11.968355 2014][core:alert][pid 1264:tid 140197817698048][client 206.183.14.57:4

所以。。。我需要专业人士的一点帮助(那将是你们这群了不起的人)

我正在创建一个php网站。。。它正处于开发阶段,但还不起作用。当我尝试访问网站时,我收到以下消息:

“内部服务器错误。服务器遇到内部错误或配置错误,无法完成您的请求。有关此错误的详细信息,请参阅服务器错误日志。”

这是错误日志中所说的:

“[Tue Aug 05 08:13:11.968355 2014][core:alert][pid 1264:tid 140197817698048][client 206.183.14.57:46764]/home/some directory/public_html/dev/.htaccess:不支持(尚未)多个参数。”

我以前从未创建过HTACCESS文件。我用了一台电脑来做这个。我不知道它有什么问题,但这里有:

注意,这个网站上不时会有流媒体,这就是为什么我在那里有一些“类型”

#htaccess文件
#http://dev.mysite.com
#我真的希望这是正确的。
AuthType Basic
AuthUserFilehttp://dev.mysite.com/members/index.php
命令拒绝,允许
需要有效用户
AddType应用程序/x-httpd-php php4
AddType应用程序/x-httpd-php3 php3
AddType应用程序/x-javascript js
AddType应用程序/x-shockwave-flash swf
AddType应用程序/x-sprite spr sprite
AddType应用程序/xls xls
AddType音频/x-mpeg mp2 mp3
AddType音频/x-ms-wma wma
AddType audio/x-pn-realaudio ram ra rm
AddType audio/x-pn-realaudio-plugin rpm
AddType音频/x-qt-stream
AddType音频/x-wav
AddType图像/gif
AddType图像/jpeg jpg jpe
AddType图像/png
AddType图像/tiff tif
AddType图像/x-ms-bmp
AddType文本/css
AddType text/html
AddType text/xml
AddType视频/mpeg mpg mpe
AddType视频/快速时间qt mov
AddType视频/x-msvideo avi
命令允许,拒绝
全盘否定
重写引擎打开#打开重写引擎
重写cond%{HTTP_REFERER}^$
重写cond%{HTTP_REFERER}^http://(dev\)?mysite.com/*$[NC]
重写规则\(gif | jpg | png | mp3 | mpg | avi | mov)$-[F]
RewriteCond%{HTTP_USER_AGENT}Wget[或]
RewriteCond%{HTTP_USER_AGENT}CherryPickerSE[或]
RewriteCond%{HTTP_USER_AGENT}CherryPickerLite[或]
RewriteCond%{HTTP_USER_AGENT}EmailCollector[或]#拒绝电子邮件收割机
重写cond%{HTTP_USER_AGENT}电子邮件虹吸[或]#拒绝电子邮件收割机
重写cond%{HTTP_USER_AGENT}EmailWolf[或]#拒绝电子邮件收割机
RewriteCond%{HTTP_USER_AGENT}提取器Pro#拒绝电子邮件收割机
重写规则^.*$deny.html[L]#拒绝电子邮件收割机
重写规则^Members/([\w-]+)/([\w-]+)/?$index.php?用户名=$1[NC,L]#进程用户名
ErrorDocument 401 403.html#需要验证/禁止验证
ErrorDocument 403 403.html#需要验证/禁止验证
错误文档404 404.html#未找到文件
ErrorDocument 500.html#服务器错误
DirectoryIndex.php
有人能告诉我我做错了什么吗?(除了访问在线生成器?)以及如何修复它

任何帮助都将不胜感激。 -谢谢

#htaccess file
#http://dev.mysite.com
#I really hope this works right.

AuthType Basic
AuthUserFile http://dev.mysite.com/members/index.php
Order deny,allow
Require valid-user

AddType application/x-httpd-php          php php4
AddType application/x-httpd-php3         php3
AddType application/x-javascript         js
AddType application/x-shockwave-flash    swf
AddType application/x-sprite             spr sprite
AddType application/xls                  xls
AddType audio/x-mpeg                     mp2 mp3
AddType audio/x-ms-wma           wma
AddType audio/x-pn-realaudio             ram ra rm
AddType audio/x-pn-realaudio-plugin      rpm
AddType audio/x-qt-stream                stream
AddType audio/x-wav                      wav
AddType image/gif                        gif
AddType image/jpeg                       jpeg jpg jpe
AddType image/png            png
AddType image/tiff                       tiff tif
AddType image/x-ms-bmp                   bmp
AddType text/css             css
AddType text/html                        htm html
AddType text/xml             xml
AddType video/mpeg                       mpeg mpg mpe
AddType video/quicktime                  qt mov
AddType video/x-msvideo                  avi
<Files .htaccess .htpasswd .htuser .htgroups .ini .config >
order allow,deny
deny from all
</Files>

RewriteEngine  on    # Turn on the rewriting engine
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(dev\.)?mysite.com/.*$ [NC]
RewriteRule \.(gif|jpg|png|mp3|mpg|avi|mov)$ - [F]  
RewriteCond %{HTTP_USER_AGENT} Wget [OR] 
RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR] 
RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR] 

RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR]  #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR]     #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR]   #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} ExtractorPro     #DENY EMAIL HARVESTERS
RewriteRule ^.*$ deny.html [L]  #DENY EMAIL HARVESTERS

RewriteRule    ^Members/([\w-]+)/([\w-]+)/?$    index.php?username=$1    [NC,L]    # Process UserName

ErrorDocument 401 403.html  #Authentication Required/Forbidden
ErrorDocument 403 403.html  #Authentication Required/Forbidden
ErrorDocument 404 404.html  #File Not Found
ErrorDocument 500 500.html  #Server Error

DirectoryIndex index.php