local site comes properly but when we deploy same

2019-08-18 00:01发布

I have create a website in wordpress, it was working properly on localhost without any disturbance.But when i deployed same folder to server then it was disturbing , it shows broken pages as shown in the image image

please find the solution for me thank you

标签: wordpress
2条回答
唯我独甜
2楼-- · 2019-08-18 00:15

Example: yourlocalwebsite.com

Example: yourlivewebsite.com

Step 1 Upload you all local files or WordPress setup to the live server.

Step 2 Export your localhost database and edit it with notpad++ editor.

Step 3 find your local website name into notpad++ something yourlocalwebsite.com then go to replace tab and replace your yourlocalwebsite.com to yourlivewebsite.com. now save it.

Step 4 check database name username and password into wp-config.php it should be correct which one you using live server database.

Step 5 go to you live database and take backup it then removes it and then imports your local database now.

Step 6 for making sure go to wp_options table and check the URL it should be now yourlivewebsite.com if not then change it

Step 7 go to wp-admin and set the permalinks to the post name

and check it is working fine or not.

查看更多
贼婆χ
3楼-- · 2019-08-18 00:23

You have to change your site url and home url in the wp_options table. or you can define them in your wp_config as

define('WP_SITEURL', 'http://your-website.com');

define('WP_HOME', 'http://your-website.com');

or

Go to phpmyadmin and change siteurl and home entry from wp_options table with your URL(http://your-website.com).

查看更多
登录 后发表回答