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

虽然不是很精通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,传到根目录下

 

 

 

90后一枚,193cm长腿欧巴,欢迎勾搭,欢迎搞基。。。

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

  1. avatar

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

    lipitor side effects

    lipitor dosage

    lipitor vs crestor

  2. avatar

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

    lipitor side effects

    lipitor dosage

    lipitor vs crestor

  3. avatar

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

    mattress brands

    century mattress

    springwell

    springwell mattress

  4. avatar

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

    seroquel xr

    seroquel for sleep

    seroquel dosage

    seroquel overdose

    seroquel weight gain

    seroquel 25mg

  5. avatar

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

    seroquel xr

    seroquel for sleep

    seroquel dosage

    seroquel overdose

    seroquel weight gain

    seroquel 25mg

  6. avatar

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

  7. avatar

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

  8. avatar

    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

  9. avatar

    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

  10. avatar

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

  11. avatar

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

| 真的AJAX提交哦

发表评论