Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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_Permalinks - Fatal编程技术网

Php 我的htaccess出错。什么';怎么了?

Php 我的htaccess出错。什么';怎么了?,php,.htaccess,permalinks,Php,.htaccess,Permalinks,CMS是正常的,因为当我在本地主机(WAMP)上使用它时,所有这些都可以工作,但当我在FTP上上传时,我看到500个内部服务器错误。怎么了?我试着去想一切。我为我的英语感到抱歉 ErrorDocument 400 /error.php ErrorDocument 401 /error.php ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php ################

CMS是正常的,因为当我在本地主机(WAMP)上使用它时,所有这些都可以工作,但当我在FTP上上传时,我看到500个内部服务器错误。怎么了?我试着去想一切。我为我的英语感到抱歉

ErrorDocument 400 /error.php
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php
#######################################

Options +FollowSymlinks
Options -Indexes

<Files .htaccess>
deny from all
</Files>

order allow,deny
deny from 65.18.169.227
allow from all

<ifModule mod_php5.c>
    php_value zlib.output_compression 16386
    php_value register_globals off
    php_value session.use_trans_sid 0
    php_value default_charset iso-8859-1
</ifModule>
########################################

<ifModule mod_rewrite>
RewriteEngine on

RewriteRule ^([A-Za-z0-9_-]+)$ profile.php?user_profile=$1
RewriteRule ^widget/(.*)$ ./widget.php?user_widget=$1 [QSA]
RewriteRule ^delete/(.*)$ ./ajax.php?cmd=delete_qa&del_id=$1 [QSA]

RewriteRule ^site/terms ./terms.php
RewriteRule ^site/privacy ./privacy.php
RewriteRule ^ajax/ask ./ajax.php?cmd=ask
RewriteRule ^ajax/checkusername ./ajax.php?cmd=check_name
RewriteRule ^ajax/answer ./ajax.php?cmd=answer_qa
RewriteRule ^account/signup ./signup.php
RewriteRule ^account/login ./login.php
RewriteRule ^account/inbox ./inbox.php
RewriteRule ^account/forgotpassword ./forgotpassword.php
RewriteRule ^account/settings ./account_settings.php
RewriteRule ^account/profile ./account_profile.php
RewriteRule ^account/photo ./account_photo.php
RewriteRule ^account/design ./account_design.php
RewriteRule ^account/widget ./account_widget.php
RewriteRule ^account/disable ./account_disable.php
RewriteRule ^site/disabled ./disabled.php
RewriteRule ^site/error ./error.php
RewriteRule ^search/profiles ./search.php
RewriteRule ^account/logout ./logout.php
RewriteRule ^site/complete ./logout-complete.php
RewriteRule ^site/maintenance ./maintenance.php

#####################################

# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
</ifModule>

<ifModule mod_ssl.c>
#SSLVerifyClient    optional_no_ca
#SSLVerifyDepth 5
#SSLOptions +FakeBasicAuth
#SSLRequireSSL

</ifModule>

正如Jake Worrell指出的,您的文本编辑器正在添加Unicode字节顺序标记(BOM)。通过更改文本编辑器中的设置,您应该能够在没有BOM表的情况下保存文件。

请参阅此问题的答案:
[Sat Oct 26 02:21:55 2013] [alert] [client 178.36.102.110] /home/drolepl/domains/domena.pl/public_html/.htaccess: Invalid command '\xef\xbb\xbfErrorDocument', perhaps misspelled or defined by a module not included in the server