How to Move WordPress Blog to New Domain or Location Kā pārvietot WordPress Blog uz jaunu domēnu vai atrašanās vietas
For blogger who self-hosts the WordPress blog publishing system on a web hosting server with own registered domain name, sometimes, you may decide to reorganize the blog link URL to make it tidier or to reflect new focus or theme of the blog. For blogger, kas self-hosts WordPress blogu publicēšanas sistēma uz web hostinga serverī ar savu reģistrēto domēna vārdu, reizēm jūs varat izlemt pārkārtot blog hipersaiti, lai to tidier vai atspoguļo jauna prioritāte, vai tēma blog. If you decide to change the URL or link location of your WordPress blog due to changing of domain name (such as from http://www.old-domain.com/ to http://www.new-domain.com/) or the blog to another directory location (such as from http://www.domain.com/ to http://www.domain.com/blog/), there are some steps that should be done to ensure the proper migration and no breaking links. Ja esat nolēmis mainīt URL vai saiti atrašanās vietu WordPress blogu saistībā ar izmaiņām domēna vārdu (piemēram, no http://www.old-domain.com/ līdz http://www.new-domain.com/) vai citā direktorijā vietu (piemēram, no http://www.domain.com/ emuāru http://www.domain.com/blog/), ir daži pasākumi, kas būtu jādara, lai nodrošinātu atbilstošu migrācijas un nē sadalīšana saites.
The tricky part when moving WordPress blog to another location is that WordPress is using absolute path in URL link instead of relative path in URL link location when stores some parameters in database. Kutelīgs daļa, pārceļoties WordPress blogu uz citu vietu, ka WordPress izmanto absolūto ceļu URL adrese, nevis relatīvo ceļa URL Link Location, kad veikali dažu parametru datu bāzē. Within blog posts' contents itself, users may also use the old URLs when creating reference backlinks. Ietvaros blog posts 'saturs pats, lietotāji var izmantot arī vecās adreses, veidojot atskaites atpakaļsaites. All these values in the database will need to be changed when WordPress is moved. Visas šīs vērtības datu bāzes ir jāmaina, ja WordPress pārvieto. The following guide will show you which database fields that has references or values related to blog's URLs that you want to modify. Šādas guide jums parādīs, kuras datu bāzi jomās, kas ir atsauces vai vērtības, kas saistītas ar emuāra URL, kuru vēlaties modificēt. Note that this guide is not about how to move WordPress blog from one server or host to another new hosting service. Ievērojiet, ka šī rokasgrāmata ir nevis par to, kā virzīties WordPress blog no viena servera vai resursdatora uz citu jauno hostinga pakalpojumus.
Once the blog has been moved (all files copy over in case of moving location or server or new domain name properly propagated across Internet for new domain name), the first thing to change is to tell WordPress the new blog location (wp-config.php should be no changes, and .htaccess file should be also no changes. If for some reason mod_rewrite rules for friendly URLs no longer works, you can always regenerate the .htaccess file via WP Administration's Update Permalinks page). Kad blogs ir pārcelts (visus failus kopēt pa gadījumā virzās atrašanās vietu vai serveri vai jaunu domēna vārdu pareizi izplatās visā internetā jaunu domēna nosaukumu), pirmā lieta, mainīt, ir pateikt WordPress jaunu blogu atrašanās vietu (wp-config. php nedrīkstētu izdarīt izmaiņas, un. htaccess failam vajadzētu būt arī nekādu izmaiņu. Ja kaut kādu iemeslu dēļ mod_rewrite noteikumi draudzīgs URL vairs nedarbojas, jūs vienmēr varat atjaunot. htaccess failu ar WP administrācijas Update Permalinks lapā). This value can be changed via WordPress Options page, but if you no longer able to access to old blog URL, you have to modify the value via MySQL database. Šo vērtību var mainīt, izmantojot WordPress opcijas, bet, ja jums vairs nav iespējams piekļūt ar vecajām blog URL, Jums ir mainīt vērtību, izmantojot MySQL datu bāze.
Note: The guide uses SQL statements based on Piezīme: guide izmanto SQL pārskatiem, pamatojoties uz MySQL replace() function MySQL REPLACE () funkcija to modify the database. pārveidot datu bāzi. To run SQL queries, login to MySQL database that houses WordPress tables via phpMyAdmin or login to the DB server and run MySQL client as root. Lai palaistu SQL vaicājumi, ielogoties MySQL datu bāze, mājas WordPress tabulas caur phpMyAdmin vai pieteikšanās uz DB serveri un palaist MySQL klientu, kā root.
To update WordPress options with the new blog location, use the following SQL command: Atjaunināt WordPress iespējas ar jaunu blogu atrašanās vietu, izmanto šādus SQL komandu:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. Pēc tam jums būs nepieciešams noteikt URL WordPress amatu un lapas, kas tulkojumā no amata lodi un glabāti datu bāzē wp_posts tabulu kā guid jomā. The URL values in this field are stored as absolute URLs instead of relative URLs, so it needs to be changed with the following SQL query: URL vērtības šajā jomā ir saglabāti kā absolūto URL vietā relatīvo URL, tāpēc ir jāmaina ar šādiem SQL vaicājums:
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Ja Jums ir saistīts iekšēji laikā blog posts vai lapas ar absolūtu URL, šīs saites norāda uz nepareizu vietu pēc tam, kad esat kustībā blog atrašanās vietu. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages: Izmantojiet šādus SQL komandas noteikt visas iekšējās saites uz savu blogu visiem WordPress amati un lapas:
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
Browse through WordPress blog to check if everything is okay. Pārlūkot WordPress blogu, lai pārbaudītu, vai viss ir kārtībā. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain. Jums arī vajadzēs atkārtoti pieteikšanās WP administrācijas kā autentificēšanas cookie tagad ir kļuvusi par invalīdu, jo dažādu domēnu.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Using PHP-MySQL Persistent Connections to Run WordPress Blog Izmantojot PHP, MySQL noturīgiem Savienojumi, lai palaistu WordPress Blog
- Replace Google Blog Search with Technorati for Incoming Links in Dashboard of WordPress Nomainīt Google Blog Search ar Technorati ienākošo saišu WordPress Dashboard
- WLWManifest Disabler Plugin to Remove XLM Link in WordPress Blog Header WLWManifest Disabler Spraudnis Noņemt xlm Saite WordPress Blog Header
- AdSense and Display Banner Ads Rotation in WordPress Blog or Websites AdSense un Display Banner Ads Rotation WordPress Blog vai Websites
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) Kā to List un parādīt WordPress Ziņojumi ka komentārus un impulsus Off (Not Allow)
- Moderate WordPress Blog Comments Via Moderator with Desktop Client Mērens WordPress Blog Komentāri Via Moderator ar Desktop Client
- How to Rename or Move Oracle Tablespace Datafile to Another Location Kā pārdēvēt vai pārvietot Oracle Tablespace datni uz citu vietu
- Google Domain Names Registration and Search for Free Apps for Your Domain Google domēna vārdu reģistrācija un Search for Free Apps Jūsu domēna
- Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template Integrēt un Attēlot Google AdSense Search and Co-Op Custom Search Engine Rezultāti WordPress Blog Page Template
- How to Delete Existing WordPress Post Revisions Stored/Saved Kā izdzēst esošos WordPress Post Revisions Saglabātā / Saved










































November 4th, 2009 00:56 4 novembris 2009 00:56
The only issue I found was that the new site keeps trying to upload media to the old site. Vienīgais jautājums man konstatēja, bija tas, ka jauno portālu tur mēģināt augšupielādēt plašsaziņas līdzekļiem, lai vecās vietā. Is there an easy way for me to change this? Vai ir viegls veids, kā man to mainīt? Where would I look? Kur man meklēt?
October 31st, 2009 08:57 31 oktobris 2009 08:57
Thanks so much for the help for me to merge my blogs. Thanks so much, lai palīdzētu man apvienoties mans blogs. You saved me a tonne of headaches. Esat saglabājis man tonnu galvassāpes.
October 29th, 2009 19:25 29 oktobris 2009 19:25
It's it not necessary to do anything in database for migrate the url to another domain. Tas, ka nav nepieciešams neko darīt, jo datu bāzē migrēt url uz citu domēnu.
There is another way with this simple steps. Tur ir vēl viena ar šo vienkāršo darbības veidā.
1. 1. change Blog address and Wordpress adresse (Url) in your general settings -> safe changes mainīt emuāra adrese un Wordpress Adresse (URL) jūsu vispārējā uzstādījumi -> droši izmaiņas
2. 2. go to settings -> permalinks do nothing and save changes go to Settings -> Permalinks neko nedarīt un saglabāt izmaiņas
so the blog urls been updated. to blog URL atjaunināta.
please give me a response … lūdzu dodiet man atbildi ...
greetz Markus greetz Markus
October 26th, 2009 23:01 26 oktobris 2009 23:01
Thank you for this advice. Paldies par šo ieteikumu. It really helped me. Tas patiešām palīdzēja man.
Sam Sam
October 17th, 2009 17:41 17 oktobris 2009 17:41
Thanks for the tips ! Paldies par padomiem!