English 中文(简体)
在不同主机和域名之间移动文字压制
原标题:Moving Wordpress between different hosts and domains
  • 时间:2012-05-23 07:41:58
  •  标签:
  • wordpress

我目前在>上有一个词质博客。

我想把这个移到""http://domain2.com" rel="no follow" >http://domain2.com

http://domain1.com/blog" rel="nofollow" >http://domain1.com/blog 和http://domain2.com 由两个不同的主机托管。

这就是我至今所做的:

  1. Installed Wordpress (using fantastico) on http://domain2.com
  2. Downloaded wp-content folder of http://domain1.com/blog using FTP and uploaded it to http://domain2.com
  3. Exported sql database of http://domain1.com/blog (from phpmyadmin)
  4. Replaced all occurrences of http://domain1.com/blog to http://domain2.com (using notepad++)
  5. Imported this sql file to http://domain2.com (using phpmyadmin)

现在的问题是...

我无法使用用户名和密码登录 "http://domain2.com/wp-admin/" rel="nofollow" >http://domain2.com/wp-admin/ 。 当我安装时,密码运作良好。

另一个问题是当我将浏览器指向“http://domain2.com” rel=“nofollow”>>http://domain2.com 时,它只显示一个空白页面。发送了一个 Get 请求(见Firebug),但我看到的只是一个空白的 HTML 响应。

知道我做错了什么吗?

最佳回答

.htaccess

如果您使用漂亮的 permalink, 您的博客根文件夹( 此文件被隐藏, 因此您可能需要告诉您的文件 GUI 来显示它) 在 < code>. htaccess 文件中也会引用您的 URL 结构 。

这大概就是它看起来的样子:

# BEGIN WordPress

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


# END WordPress

您可两次看到 /blog , 并在子文件夹中处理您的博客 URL。 请尝试将它修改为 < code>/ , 用于您的新设置 。

Salts and Keys

wp- config.php 中有一些安全密钥和盐类,它们看起来像 define (AUTH_KEY, KJnvurwi846%84); (AUTH_KEY, KJnvurwi846%84);

这些密码被用于密码处理和其它事项。 如果您的 wp- config.php 没有从旧博客复制, 而是在安装时重新生成, 您的密码盐很有可能被更改。 这将使得您的密码无效, 这可能是您无法登录的原因 。

从旧的 wp- config.php 复制所有 *KEY 和 *SALT 值来解决这个问题 。

问题回答

我面对同样的问题 之前,当我做同样的问题。

  1. 转到主题管理器设置默认主题并检查默认主题是否正常工作。

  2. 如果回答是,那么一切都好,现在回到你的主题,测试它是否有效。

  3. If work then this is the trick when you Moving Wordpress between different hosts and domains.

如果不是,那可能是你的主题问题。





相关问题
Wrap stray text in <p> tags

Wordpress issue.. how do I wrap stray text in P tags? Example: Before- <div class = "content"> <img src = "hello.jpg"/> <h1>Introduction</h1> Hello! this is ...

Using jQuery Plugins with Wordpress

Having a bit of trouble using jQuery plugins (Superfish, jQuery UI, etc) using Wordpress. Everything works fine in my plain non-Wordpress site, but Wordpress seems to conflict with JQuery. There must ...

WordPress Data Storage Efficiency

I ve been asked to review a WordPress plugin of sorts and try to find ways of making it faster. The premise of this plugin is basically to store a bunch of users and shifts and appointments and ...

Why can t I properly style a blockquote in Wordpress?

On the design I just created for my website, I have a blockquote styled with two quote images using the span technique in css: blockquote { background-image: url(images/openquote.jpg); background-...

How does the WordPress <!--nextpage--> tag actually work?

What happens? I m guessing that somehow the post or page is parsed before displaying, and then just split into two methods? I can t seem to find any documentation on how the underlying <?php ...

Wordpress Plug-ins: How-to add custom URL Handles

I m trying to write a Wordpress Plug-in but can t seem to figure out how you would modify how a URL gets handled, so for example: any requests made for: <url>/?myplugin=<pageID> will ...

热门标签