How to Move WordPress Blog to New Domain or Location Ako Move WordPress Blog až novej domény alebo miesto
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. Pre blogger kto self-hosts WordPress blog nakladateľský osoustava na webhostingové servery s vlastnou registrovanou doménu, niekedy sa môžete rozhodnúť, reorganizovať blogu URL odkazov, aby bol poriadok, alebo aby odrážali nové zameranie alebo témou tohto blogu. 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. Ak sa rozhodnete zmeniť URL alebo článok lokalizácia of tvoj blog WordPress vzhľadom k zmene názvu domény (ako napríklad z http://www.old-domain.com/ do http://www.new-domain.com/) alebo blog do iného adresára (napr. od http://www.domain.com/ do http://www.domain.com/blog/), tam sú niektoré kroky, ktoré je potrebné urobiť na zabezpečenie riadneho a migrácia brzdný odkazy.
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. Chúlostivé časti pri prechode WordPress blog až na iný lokalizácia je, že WordPress je pomocou absolútnej cesty v URL odkazov miesto relatívna cesta v URL článok lokalizácia pri obchodoch niektoré parametre v databáze. Within blog posts' contents itself, users may also use the old URLs when creating reference backlinks. V rámci obsah blogu 'samo o sebe, môžu používatelia tiež použiť staré URL adresy pri vytváraní spätnej referencie. All these values in the database will need to be changed when WordPress is moved. Všetky tieto hodnoty v databáze, bude potrebné zmeniť, keď je presunuté WordPress. The following guide will show you which database fields that has references or values related to blog's URLs that you want to modify. Nasledujúci návod vám ukáže, ktoré databázu polia, ktorá má odkazy či hodnoty vzťahujúce sa na blogu adresy URL, ktoré chcete upraviť. Note that this guide is not about how to move WordPress blog from one server or host to another new hosting service. Všimnite si, že táto príručka nie je o tom, ako sa pohybovať WordPress blog z jedného servera alebo hostiteľa na druhého nové hostingové služby.
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). Akonáhle blog bol presunutý (všetky súbory skopírujte v prípade sťahovania alebo umiestnenie servera alebo nový názov domény správne šírené cez internet pre nový názov domény), v prvom rade k zmene je povedať WordPress nový blog umiestnenie (wp-config. php by mala zostať nezmenená, a. htaccess by mal byť tiež žiadne zmeny. Ak z nejakého dôvodu mod_rewrite pravidiel pre priateľské URL už funguje, môžete vždy obnoviť. htaccess cez stránke Aktualizácia WP správy Permalinks). 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. Túto hodnotu je možné zmeniť pomocou WordPress Voľby stránky, ale ak ste už mať prístup k starým blogu, budete musieť upraviť hodnotu prostredníctvom databázy MySQL.
Note: The guide uses SQL statements based on Poznámka: Táto príručka používa SQL na základe MySQL replace() function MySQL replace () funkcie to modify the database. zmeniť databázy. 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. Ak chcete spustiť SQL dotazy, prihlásenie k MySQL databázu, ktorá domy WordPress tabuľky pomocou phpMyAdmin alebo prihlásení na server DB a spustenie MySQL klient ako root.
To update WordPress options with the new blog location, use the following SQL command: Ak chcete aktualizovať WordPress s možnosťou umiestnenia nového blogu, použite nasledujúci SQL príkaz:
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. Potom, že budete musieť opraviť URL WordPress stĺpiky a stránky, ktoré si z post Plzák, a uložené v tabuľke databázy wp_posts ako guid poľa. 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 hodnoty v tomto poli sú uložené ako absolútne URL miesto relatívnej adresy URL, takže je potrebné zmeniť s nasledujúcim SQL dotazu:
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. Ak máte spojené interne v rámci blogu alebo stránky s absolútnou URL, budú tieto odkazy poukazujú na zlé umiestnenie po presunutí blogu umiestnenie. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages: Použite nasledujúci SQL príkazy opraviť všetky vnútorné odkazy na vlastný blog, vo všetkých WordPress stĺpiky a stránky:
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. Prehľadávať WordPress blog skontrolovať, či je všetko v poriadku. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain. Tiež je potrebné sa znova prihlásiť k WP-správne ako autentifikačný cookie sa stala neplatnú z dôvodu inej domény.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.
Related Articles Súvisiace články
- Using PHP-MySQL Persistent Connections to Run WordPress Blog PHP-MySQL trvalé pripojenie k Beh WordPress Blog
- Replace Google Blog Search with Technorati for Incoming Links in Dashboard of WordPress Nahradiť Google Blog Hľadať s Technorati do Vcházející Golfové ihrisko pre Blatník of WordPress
- WLWManifest Disabler Plugin to Remove XLM Link in WordPress Blog Header Wlwmanifest Oslabit Čep až k Chod XLM Link do WordPress Blog hlavičky
- AdSense and Display Banner Ads Rotation in WordPress Blog or Websites AdSense a Akcidenční sadzba Korouhev Reklamy Otáčanie do WordPress Blog alebo webovej stránky
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) Ako sa na zoznam a Zobraziť WordPress Príspevky, že pripomienky a paketov Ping Off (Nie Povoliť)
- Moderate WordPress Blog Comments Via Moderator with Desktop Client Stredne WordPress Blog Poznámky Via Moderátor s Kancelársky Klient
- How to Rename or Move Oracle Tablespace Datafile to Another Location Ako premenovať alebo presunúť Oracle Tablespace dátový súbor na iné miesto
- Google Domain Names Registration and Search for Free Apps for Your Domain Google Doména Mená Registrácia a Hľadať čo Drzý Apps pre vašu doménu
- Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template Integrovať a displeja Google AdSense do Vyhľadaj a Co-Op Colnica Hľadať Motor Výsledky vo WordPress Blog šablónu
- How to Delete Existing WordPress Post Revisions Stored/Saved Ako odstrániť existujúce WordPress pošty Revízia Uložené / Uložené










































November 5th, 2009 11:24 5. novembra 2009 11:24
There is nothing I could find on the WP codex that describes these completely essential steps of the migration process completely. Neexistuje nič, čo by som mohol nájsť na WP kódex, ktorý opisuje tieto zásadné kroky v procese migrácie úplne. Also, the MySQL commands is by far the most difficult bit to understand. Tiež, MySQL príkazy je zďaleka najťažšie trochu pochopiť. Awesome stuff and thanks. Awesome stuff a vďaka. I followed your steps and it works (and I understand it too). Sledoval som Vaše kroky, a to funguje (a taky jsem to pochopil).
November 5th, 2009 05:16 5. novembra 2009 05:16
Thank you.. Ďakujem ..
Now I can sleep again.. Teraz som si zase spať ..
November 5th, 2009 01:36 5. novembra 2009 01:36
I just want to say thank you very much for this article and for your time creating these SQL statements. Chcem len povedať, ďakujem vám za tento článok a za váš čas vytvorenia týchto SQL príkazov.
Can i say I Love You?!?! Môžem povedať Milujem ťa?!?! haha haha
Thanks, Vďaka,
Kelsi Guidry Kelsi Guidry
November 4th, 2009 00:56 4 novembra 2009 00:56
The only issue I found was that the new site keeps trying to upload media to the old site. Jediným problémom bolo, že som našiel nový web stále snažili nahrať médií na starom mieste. Is there an easy way for me to change this? Existuje jednoduchý spôsob, ako mi to zmeniť? Where would I look? Kde by som sa pozrieť?
October 31st, 2009 08:57 31.říjen 2009 08:57
Thanks so much for the help for me to merge my blogs. Díky moc za pomoc pre mňa až na spojiť moje blogy. You saved me a tonne of headaches. Tebe zachránený mne tonu bolesti hlavy.
October 29th, 2009 19:25 29.Októbra 2009 19:25
It's it not necessary to do anything in database for migrate the url to another domain. To, že nie je potrebné robiť nič v databáze pre migráciu url na inú doménu.
There is another way with this simple steps. Existuje iný spôsob, ako s týmto jednoduchým spôsobom.
1. 1. change Blog address and Wordpress adresse (Url) in your general settings -> safe changes Blog zmena adresy a Wordpress Adresse (URL) vo svojej všeobecné nastavenia -> bezpečne zmeny
2. 2. go to settings -> permalinks do nothing and save changes ísť do nastavenia -> permalinks nerobiť nič a uložte zmeny
so the blog urls been updated. tak blog urls boli aktualizované.
please give me a response … Dajte mi prosím odpoveď ...
greetz Markus greetz Markus
October 26th, 2009 23:01 26.říjen 2009 23:01
Thank you for this advice. Ďakujem za túto radu. It really helped me. To naozaj mi pomohol.
Sam Sam
October 17th, 2009 17:41 17.říjen 2009 17:41
Thanks for the tips ! Vďaka za tipy!