我的网站在magento下有问题。 将站点迁移到另一台服务器后,我收到500错误。
我做了什么:
开始解决方案:
当我运行magento-cleanup脚本并加载网站时,它可以正常工作! 但是,当我点击链接时,我再次遇到500错误。 我提出magento-cleanup脚本,然后页面加载!!!
管理界面相同。
在OVH服务器上上传网站后,网站正常运行。在Gandi服务器上我的.htaccess似乎有问题但在OVH没有。
如果有人有解决方案在Gandi上部署现有的Magento安装,我很感兴趣。 也许我会开始新的Magento安装并重新注入我的信息?但在我看来,无论如何更复杂!!
感谢您的帮助。
这是我的htaccess:
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
#Action php5-cgi /cgi-bin/php5-cgi
#AddHandler php5-cgi .php
############################################
## GoDaddy specific options
#Options -MultiViews
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini
############################################
## default index file
DirectoryIndex index.php
<IfModule mod_php5.c>
############################################
## adjust memory limit
php_value memory_limit 256M
php_value max_execution_time 18000
############################################
## disable magic quotes for php request vars
php_flag magic_quotes_gpc off
############################################
## disable automatic session start
## before autoload was initialized
php_flag session.auto_start off
###########################################
# disable user agent verification to not break multiple image upload
php_flag suhosin.session.cryptua off
###########################################
# turn off compatibility with PHP4 when dealing with objects
php_flag zend.ze1_compatibility_mode Off
</IfModule>
<IfModule mod_security.c>
###########################################
# disable POST processing to not break multiple image upload
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
<IfModule mod_ssl.c>
############################################
## make HTTPS env vars available for CGI mode
SSLOptions StdEnvVars
</IfModule>
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
#RewriteBase /magento/
############################################
## uncomment next line to enable light API calls processing
#RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]
############################################
## rewrite API2 calls to api.php (by now it is REST only)
#RewriteRule ^api/rest api.php?type=rest [QSA,L]
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^villas(/.+)* /fr/villas$1 [L,R=301]
RewriteRule ^maisons(/.+)* /fr/maisons$1 [L,R=301]
RewriteRule ^appartements(/.+)* /fr/appartements$1 [L,R=301]
RewriteRule ^prestige(/.+)* /fr/prestige$1 [L,R=301]
RewriteRule ^carte-des-locations-de-vacances(/.+)* /fr/carte-des-locations-de-vacances/$1 [L,R=301]
RewriteRule ^conciergerie(/.+)* /fr/conciergerie$1 [L,R=301]
RewriteRule ^offres-speciales(/.+)* /fr/offres-speciales$1 [L,R=301]
RewriteRule ^polynesie-francaise(/.+)* /fr/polynesie-francaise$1 [L,R=301]
RewriteRule ^evenements(/.+)* /fr/evenements$1 [L,R=301]
RewriteRule ^assurance(/.+)* /fr/assurance$1 [L,R=301]
RewriteRule ^paiement(/.+)* /fr/paiement$1 [L,R=301]
RewriteRule ^proprietaires(/.+)* /fr/proprietaires$1 [L,R=301]
RewriteRule ^qui-sommes-nous(/.+)* /fr/qui-sommes-nous$1 [L,R=301]
RewriteRule ^engagements(/.+)* /fr/engagements$1 [L,R=301]
RewriteRule ^agents-de-voyages(/.+)* /fr/agents-de-voyages$1 [L,R=301]
RewriteRule ^mentions-legales-et-credits(/.+)* /fr/mentions-legales-et-credits$1 [L,R=301]
RewriteRule ^contacts(/.+)* /fr/contacts$1 [L,R=301]
RewriteRule ^conditions-generales-de-location(/.+)* /fr/conditions-generales-de-location$1 [L,R=301]
RewriteRule ^houses(/.+)* /en/houses$1 [L,R=301]
RewriteRule ^condos(/.+)* /en/condos$1 [L,R=301]
RewriteRule ^special-offers(/.+)* /en/special-offers$1 [L,R=301]
RewriteRule ^french-polynesia(/.+)* /en/french-polynesia$1 [L,R=301]
RewriteRule ^concierge-service(/.+)* /en/concierge-service$1 [L,R=301]
RewriteRule ^insurance(/.+)* /en/insurance$1 [L,R=301]
RewriteRule ^payment(/.+)* /en/payment$1 [L,R=301]
RewriteRule ^about-us(/.+)* /en/about-us$1 [L,R=301]
RewriteRule ^commitments(/.+)* /en/commitments$1 [L,R=301]
RewriteRule ^travel-agents(/.+)* /en/travel-agents$1 [L,R=301]
RewriteRule ^legal-mentions-credits(/.+)* /en/legal-mentions-credits$1 [L,R=301]
RewriteRule ^general-rental-terms(/.+)* /en/general-rental-terms$1 [L,R=301]
RewriteRule ^payment(/.+)* /en/payment$1 [L,R=301]
RewriteRule ^en/$ /en/home [L,R=301]
## page CMS en=>fr
RewriteRule ^fr/special-offers(/.+)* /fr/offres-speciales [L,R=301]
RewriteRule ^fr/french-polynesia(/.+)* /fr/polynesie-francaise [L,R=301]
RewriteRule ^fr/concierge-service(/.+)* /fr/conciergerie [L,R=301]
RewriteRule ^fr/events(/.+)* /fr/evenements [L,R=301]
RewriteRule ^fr/insurance(/.+)* /fr/assurance [L,R=301]
RewriteRule ^fr/payment(/.+)* /fr/paiement [L,R=301]
RewriteRule ^fr/about-us(/.+)* /fr/qui-sommes-nous [L,R=301]
RewriteRule ^fr/commitments(/.+)* /fr/engagements [L,R=301]
RewriteRule ^fr/travel-agents(/.+)* /fr/agents-de-voyages [L,R=301]
RewriteRule ^fr/rental-map(/.+)* /fr/carte-des-locations-de-vacances [L,R=301]
RewriteRule ^fr/legal-mentions-credits(/.+)* /fr/mentions-legales-et-credits [L,R=301]
RewriteRule ^fr/general-rental-terms(/.+)* /fr/conditions-generales-de-location [L,R=301]
## page CMS fr=>en
RewriteRule ^en/offres-speciales(/.+)* /en/special-offers [L,R=301]
RewriteRule ^en/polynesie-francaise(/.+)* /en/french-polynesia [L,R=301]
RewriteRule ^en/conciergerie(/.+)* /en/concierge-service [L,R=301]
RewriteRule ^en/evenements(/.+)* /en/events [L,R=301]
RewriteRule ^en/assurance(/.+)* /en/insurance [L,R=301]
RewriteRule ^en/paiement(/.+)* /en/payment [L,R=301]
RewriteRule ^en/qui-sommes-nous(/.+)* /en/about-us [L,R=301]
RewriteRule ^en/engagements(/.+)* /en/commitments [L,R=301]
RewriteRule ^en/agents-de-voyages(/.+)* /en/travel-agents [L,R=301]
RewriteRule ^en/carte-des-locations-de-vacances(/.+)* /en/rental-map [L,R=301]
RewriteRule ^en/mentions-legales-et-credits(/.+)* /en/legal-mentions-credits [L,R=301]
RewriteRule ^en/conditions-generales-de-location(/.+)* /en/general-rental-terms [L,R=301]
############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
############################################
## redirect for mobile user agents
#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
</IfModule>
############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead
AddDefaultCharset Off
#AddDefaultCharset UTF-8
<IfModule mod_expires.c>
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
ExpiresDefault "access plus 1 year"
</IfModule>
############################################
## By default allow all access
Order allow,deny
Allow from all
###########################################
## Deny access to release notes to prevent disclosure of the installed Magento version
<Files RELEASE_NOTES.txt>
order allow,deny
deny from all
</Files>
############################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags
#FileETag none
`
答案 0 :(得分:0)
500可能是由很多东西引起的,所以一些日志会非常有用。
我的第一个猜测是检查你的文件权限。然后,如果您可以在本地环境中复制此错误,请编辑index.php并启用以下行:
ini_set(‘display_errors’, 1);
无论如何,你不应该在这里发布你的域名。