2013-04-24 78 views
3

我通过FTP下载了所有文件,并将它们粘贴到我的'www/mysite-live'文件夹中。将WordPress Live网站转移到Localhost

我正在使用WAMP。我没有下载实时SQL文件并通过localhost/phpmyadmin导入。

我确实改变了我的wp-config.php配置。

define('WPLANG', ''); 
define('WP_HOME','http://localhost/mysite-live'); 
define('WP_SITEURL','http://localhost/mysite-live'); 

define('DB_NAME', 'mysite_db'); 

/** MySQL database username */ 
define('DB_USER', 'root'); 

/** MySQL database password */ 
define('DB_PASSWORD', ''); 

/** MySQL hostname */ 
define('DB_HOST', 'localhost'); 

/** Database Charset to use in creating database tables. */ 
define('DB_CHARSET', 'utf8'); 

/** The Database Collate type. Don't change this if in doubt. */ 
define('DB_COLLATE', ''); 

现在,当我查看http://localhost/mysite-live/我只能查看主页 我无法访问其他网页和帖子。我得到404.

什么似乎是问题。我错过了什么?

+1

你有没有试过在'wp-admin> settings> permalinks'里把永久链接改成默认值。 – 2013-04-24 03:34:50

+1

你是否在使用'mod_rewrite'的漂亮URL(删除'index.php')?必须在WAMP的'httpd.conf'文件中手动启用'mod_rewrite'。 – Lukas 2013-04-24 03:35:25

+0

谢谢你们!是的,这是一个永久性的问题..我现在能够修复它。 – 2013-04-24 03:41:34

回答

2

走你的WP-管理 - >设置 - >永久链接

再次保存您的常用设置为实时网站。