0
夥計們我正在一個項目上使用以下.htaccess代碼在本地服務器上,它給我500內部錯誤 我試着修改代碼,但仍然無法找到解決方案 因爲我已經評論過這些行但仍然沒有結果.htacess文件給500內部服務器錯誤
# Comment the 2 lines below if the server returns 500 errors!
# Options -Indexes
# Options +FollowSymLinks
#Uncomment following lines if you want to use image caching!
#<IfModule mod_expires.c>
# ExpiresActive On
# ExpiresDefault A1209600
# ExpiresByType text/html A1
#</IfModule>
# Uncomment following lines if Apache doesnt support MultiViews!
<IfModule mod_rewrite.c>
RewriteEngine On
# Uncomment the 2 lines below if you are using www.domain.com
# as the baseurl for the site and users access your site
# via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
#RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
#RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* loader.php [L,QSA]
</IfModule>
# Edit below lines and set to
# ErrorDocument CODE /RELATIVE/error.php
# If the script is installed in the default document
# root then relative is null.
#ErrorDocument 401 /error.php
#ErrorDocument 403 /error.php
#ErrorDocument 404 /error.php
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|</body>| <script type=\"text/javascript\"> var loc = ((\"https:\" == document.location.protocol) ? \"https://analytics.\" : \"http://analytics.\"); document.write(unescape(\"%3Cscript src='\" + loc + \"sitewit.com/v3/931271415/sw.js' type='text/javascript'%3E%3C/script%3E\")); </script> </body>|ni"
檢查你的Apache error.log中看到什麼是500錯誤的原因 – anubhava 2014-11-05 18:32:21