wordpress搬家后前台文章,后台空白或打不开解决办法。

  • A+
所属分类:杂乱无章

虽然不是很精通wp,但是我的博客被迫搬了四次家,有了搬家的经验。。。下面我就和大家分享一下我的经验。

一,500 Internal server error错误解决办法

貌似.htaccess删除就好了

二,登录后台空白解决办法

1.可能是因为插件的问题,用FTP将wp-content下的plugins目录改为plugin然后打开后台页面。登陆上之后,再将plugins名字更改回来。如果此办法不行,请保持原貌,继续下一步。
2.可能是wp-config.php出的问题,首先检查wp-config.php里边的sql配置文件,看自己的sql数据库名字,数据库用户名,数据库密码,sql主机这些信息填写的是否正确!
3.如果以上两种方法均不行,就要继续往下看了。登陆ftp后,删除wp-config.php文件,然后打开你的网站,重新开始配置wordpress的sql配置文件,按照新空间的资料,正确填写之后,就应该完全解决后台空白的问题了!

三,.前台文章页空白或者404错误的解决办法

网站做了伪静态,可能新空间Rewrite未开启或者伪静态不正确

上传.htaccess到主目录

下面是我的.htaccess内容

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

如果是IIS主机配置httpd.ini文件如下

[ISAPI_Rewrite]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# # 形式:/PostID.html
# # 自定义链接 /%post_id%.html
RewriteRule /Tags/(.*) /index\.php\?tag=$1
RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link|help|security|%e5%85%b3%e4%ba%8e) /index\.php\?pagename=$1
RewriteRule /Category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
RewriteRule /Category/?(.*) /index\.php\?category_name=$1
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
RewriteRule /author/?(.*) /index\.php\?author_name=$1
RewriteRule /rss.xml /wp-feed\.php/\?feed=rss2
RewriteRule /feed/?$ /wp-feed\.php/\?feed=rss2
RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
RewriteRule /([0-9]+).html /index\.php\?p=$1 [I]
RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1
RewriteRule /page/(.*) /index\.php\?paged=$1
RewriteRule /date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
RewriteRule /date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule /date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
RewriteRule /([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1
RewriteRule /([0-9]+).html/trackback /wp-trackback\.php\?p=$1

把其上面那整段的代码复制到记事本里,保存,然后改名为httpd.ini,传到根目录下

 

 

 

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:32   其中:访客  11   博主  0

    • avatar lipitor 1

      http://twey.ru/products/blood_pressure_heart/lipitor/order/

      lipitor side effects

      lipitor dosage

      lipitor vs crestor

      • avatar lipitor 1

        http://eupy.ru/products/blood_pressure_heart/lipitor/order/

        lipitor side effects

        lipitor dosage

        lipitor vs crestor

        • avatar sleepwell 0

          http://eupy.ru/products/anxiety_sleep_aid/sleepwell/order/

          mattress brands

          century mattress

          springwell

          springwell mattress

          • avatar seroquel 1

            http://twey.ru/products/mental_health_epilepsy/seroquel/order/

            seroquel xr

            seroquel for sleep

            seroquel dosage

            seroquel overdose

            seroquel weight gain

            seroquel 25mg

            • avatar seroquel 1

              http://eupy.ru/products/mental_health_epilepsy/seroquel/order/

              seroquel xr

              seroquel for sleep

              seroquel dosage

              seroquel overdose

              seroquel weight gain

              seroquel 25mg

              • avatar prozac 1

                http://twey.ru/products/anti_depressants/prozac/order/
                prozac glaucoma
                amoxapine and prozac
                prozac 50 mg dose
                prozac debate the american psychiatric association

                • avatar prozac 1

                  http://eupy.ru/products/anti_depressants/prozac/order/
                  prozac glaucoma
                  amoxapine and prozac
                  prozac 50 mg dose
                  prozac debate the american psychiatric association

                  • avatar femalepinkviagra 1

                    http://twey.ru/products/women_s_health/femalepinkviagra/order/
                    buy female pink viagra without prescription

                    female pink viagra side effects

                    female pink viagra 100mg pills

                    • avatar femalepinkviagra 1

                      http://eupy.ru/products/women_s_health/femalepinkviagra/order/
                      buy female pink viagra without prescription

                      female pink viagra side effects

                      female pink viagra 100mg pills

                      • avatar zithromax 250mg 1

                        http://twey.ru/products/antibiotics/zithromax/order/
                        zithromax dosage
                        zithromax side effects
                        zithromax 250mg
                        zithromax and alcohol

                        • avatar zithromax 250mg 1

                          http://eupy.ru/products/antibiotics/zithromax/order/
                          zithromax dosage
                          zithromax side effects
                          zithromax 250mg
                          zithromax and alcohol