.htaccess 500内部错误?不好,你能进入吗?

.htaccess 500内部错误?不好,你能进入吗?,.htaccess,internal,.htaccess,Internal,访问权限不好? 组合以运行多个函数。 下面是显示500内部错误的代码,不知道为什么 RewriteEngine on #RewriteCond %{REQUEST_FILENAME}.php -f [OR] #RewriteCond %{REQUEST_FILENAME}.php -d #RewriteRule ^([^\.]+)$ $1.php [NC,L] #Forbids Directory access Options -Indexes #Root index file

访问权限不好? 组合以运行多个函数。 下面是显示500内部错误的代码,不知道为什么

RewriteEngine on
#RewriteCond %{REQUEST_FILENAME}.php -f [OR]  
#RewriteCond %{REQUEST_FILENAME}.php -d  
#RewriteRule ^([^\.]+)$ $1.php [NC,L]



#Forbids Directory access
Options -Indexes 
#Root index file
DirectoryIndex login.php
#Rule for maintaining user url
RewriteRule ^users/(.*)/(.*)/(.*+)/?$ pages/$2.php?social_id=$1 [QSA]
#Initiallinzing user url
RewriteRule ^users/(.*+)/?$ pages/profile.php?social_id=$1 [QSA]
#direct access to login.php
RewriteRule ^login login.php [QSA]
#direct access to logout.php
RewriteRule ^logout logs/logout.php [QSA]
#direct access to help.php
RewriteRule ^help help.php [QSA]
# # Use Mod_deflate to compress static files
<ifmodule mod_deflate.c>
<filesmatch ".(js|css|ico|txt|htm|html|php)$">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>
重新编写引擎打开
#RewriteCond%{REQUEST_FILENAME}.php-f[或]
#RewriteCond%{REQUEST_FILENAME}.php-d
#重写规则^([^\.]+)$$1.php[NC,L]
#禁止目录访问
选项-索引
#根索引文件
DirectoryIndex login.php
#维护用户url的规则
重写规则^users/(.*)/(.*)/(.*)+/$pages/$2.php?社交id=$1[QSA]
#初始化用户url
重写规则^users/(.*)/?$pages/profile.php?社交id=$1[QSA]
#直接访问login.php
重写规则^login login.php[QSA]
#直接访问logout.php
重写规则^logout logs/logout.php[QSA]
#直接访问help.php
重写规则^help help.php[QSA]
##使用Mod_deflate压缩静态文件
SetOutputFilter放气
试试看:

#Forbids Directory access
Options -Indexes 

#Root index file
DirectoryIndex login.php

RewriteEngine on
RewriteCond %{REQUEST_FILENAME}\.php -f  
RewriteRule ^(.+)$ $1.php [L]

#Rule for maintaining user url
RewriteRule ^users/(.+)/(.+)/(.+)/?$ pages/$2.php?social_id=$1 [QSA]

#Initiallinzing user url
RewriteRule ^users/(.+)/?$ pages/profile.php?social_id=$1 [QSA]

#direct access to logout.php
RewriteRule ^logout logs/logout.php [QSA]

# # Use Mod_deflate to compress static files
<ifmodule mod_deflate.c>
<filesmatch ".(js|css|ico|txt|htm|html|php)$">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>
#禁止目录访问
选项-索引
#根索引文件
DirectoryIndex login.php
重新启动发动机
重写cond%{REQUEST_FILENAME}\.php-f
重写规则^(+)$$1.php[L]
#维护用户url的规则
重写规则^users/(.+)/(.+)/(.+)/?$pages/$2.php?社交id=$1[QSA]
#初始化用户url
重写规则^users/(.+)/?$pages/profile.php?社交id=$1[QSA]
#直接访问logout.php
重写规则^logout logs/logout.php[QSA]
##使用Mod_deflate压缩静态文件
SetOutputFilter放气

post error log也只有这样才能在.htaccess文件中找到错误?请尝试我上次的更正。如果您可以在错误日志中看到错误消息