【发布时间】:2011-05-19 18:07:42
【问题描述】:
我安装了壁纸脚本,但它在主页上给出了这个错误:
服务器遇到内部错误或配置错误,无法完成您的请求。
请联系服务器管理员,[未提供地址],并告知他们错误发生的时间,以及您所做的任何可能导致错误的事情。
服务器错误日志中可能会提供有关此错误的更多信息。
我认为这是 .htaccess 文件。我在下面粘贴 .htaccess 文件:
#php_flag display_errors On
#Options +FollowSymlinks
RewriteEngine Off
RewriteEngine On
#change / with the relative path if you install the script in a subdirectory
#RewriteBase /wallpaperscript.com/script/
#This is for redirecting links with any subdomain to no subdomain
#RewriteCond %{HTTP_HOST} ^(.+).wallpapers.net [NC]
#RewriteRule ^(.*)$ http://wallpapers.net/$1 [R=301,NC,L]
#This is for redirecting links without trailing / to links with trailing /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_URI} !(.*)\.(.+){3,4}
#RewriteCond %{REQUEST_URI} !(.*)/$
#RewriteRule ^(.*)$ /$1/ [L,R=301]
#RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-desktop-wallpapers$5$6$7
#RewriteRule ^([^/]*)/([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-desktop-wallpapers$4$5$6
#RewriteRule ^([^/]*)/([^/]*)-desktop-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-desktop-wallpapers$3$4$5
#RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $4-wallpapers$5$6$7
#RewriteRule ^([^/]*)/([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $3-wallpapers$4$5$6
#RewriteRule ^([^/]*)/([^/]*)-wallpapers([^/]*)(/){0,1}([^/]*)$ $2-wallpapers$3$4$5
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&resource=$1 [L]
这有什么问题吗?我的网站网址是 www.hotwallpapers.pk
【问题讨论】:
-
服务器错误日志中的内容 - 检查
/var/log/httpd/error_log。 -
这不应该是服务器故障吗?
-
值得一问 - 你启用了
mod_rewrite吗?
标签: apache .htaccess mod-rewrite