开发者

problem of wordpress move hosting, broking the link

开发者 https://www.devze.com 2023-02-18 12:49 出处:网络
I use wordpress as a CMS(NOT A BLOG) build a information site. I use wordpress 3.04 + buddypress 1.26 + Exec-PHP(only 2 plungins).

I use wordpress as a CMS(NOT A BLOG) build a information site. I use wordpress 3.04 + buddypress 1.26 + Exec-PHP(only 2 plungins).

I built my site in my computer, winxp + Apache/2.2.13 + PHP/5.2.11 the path is in e:/www/wordpress. I made a custom buddypress theme in E:\www\wordpress开发者_开发问答\wp-content\themes\mynewtheme and I store all the Template, css, js, images under this theme path. Then I open settings->Permalink Settings->Custom Structure set a path like http:/localhost/wordpress/index.php (For I am a newbie, I tried this, but pass the test). I add all my new pages through admin dashboard->pages->add new. Then I can test my pages, type a url like localhost/wordpress/computers/apple.

I have already finished my site, so I want move these files to another computer for a last test. The new computer win7 + Apache/2.2.13 + PHP/5.2.11 the path is in c:/www/wordpress, I copied all the page files from first computer e:/www/wordpress to new computer c:/www/wordpress and copied all database through phpmyadmin.

I just copied page files and database, nothing more. But when I type the url http:/localhost/wordpress, the home page just load little, and localhost/wordpress/computers/apple was a broken link. I checked the html source code , find all the css, js, images under my custom theme are all missed. Is it because my first settings->Permalink Settings->Custom Structure setting wrong? Or other mistake caused?

How to solve? I am almost crazy. Waiting for a help. Thanks.


If you first installed WordPress in a WAMP server, there can be problems when migrating server. I know of two options:

  1. While in your WAMP server, before doing the migration, under Settings, enter the domain that you will be moving to your site. It will most likely work once you migrate.

  2. (This is what I use), after performing the migration, you can edit the domain in PHPMyAdmin. Log in to PhpMyAdmin and choose the database that you use for WordPress. Under list, look for wp_options. Under the field option_name, seek site URL. The site URL should be listed as localhost. Change it to your site's new URL.


Did wordpress installed correctly? Is it a theme issue?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号