2013-04-24 79 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-管理 - >設置 - >永久鏈接

再次保存您的常用設置爲實時網站。