2014-11-06 46 views
-1

當我從/ var/www/html/48中將我的wordpress文件複製並粘貼到/ var/www/html /中時, wordpress文件。將域從example.com/48更改爲example.com Wordpress Ec2 AWS

我尋求的結果是有48n.ca重定向到48n.ca/48/

謝謝

+0

刪除並重新安裝我認爲我改變了配置太多不知道我在做什麼,步驟在這裏http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html – 48n 2014-11-11 22:21:24

回答

0

read the docs on migrating WordPress

簡短回答:你不能只複製和粘貼你的文件到一個新的目錄,並期望它的工作。

此外,您需要在wp_options數據庫表中登錄change your site and WordPress URL並重新保存永久鏈接(除其他外)。這是您看到重定向的主要原因。 WordPress仍認爲您的網站應該位於原始目錄中,因爲您尚未更新任何數據庫值。

+0

我認爲我經常更改我的配置文件,因此我按照以下步驟重新安裝了它們:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html – 48n 2014-11-11 22:20:32