How to Move WordPress Blog to New Domain or Location כיצד להעביר בלוג WordPress לניו תחום או מיקום
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. עבור מי Blogger עצמית מארח את מערכת וורדפרס פרסום בלוג באינטרנט אירוח שרת עם רשום שם תחום עצמו, לפעמים, אתה עשוי להחליט לארגן מחדש את הקישור כתובת הבלוג כדי להפוך אותו tidier או כדי לשקף את המוקד החדש או הנושא של הבלוג. 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. אם תחליט לשנות את כתובת האתר או קישור למיקום של בלוג WordPress עקב שינוי של שם תחום (כגון http://www.old-domain.com/ כדי http://www.new-domain.com/ שלך) את הבלוג או למיקום אחר בספריה (כגון http://www.domain.com/ כדי http://www.domain.com/blog/), יש כמה צעדים שצריך לעשות כדי להבטיח את ההגירה נאות אין קישורים שבירה.
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. החלק הקשה בעת העברת בלוג WordPress למיקום אחר זה וורדפרס היא באמצעות הנתיב המוחלט בקישור כתובת האתר במקום נתיב יחסי במיקום כתובת הקישור חנויות כאשר מספר פרמטרים באתר. Within blog posts' contents itself, users may also use the old URLs when creating reference backlinks. בתוך תוכן הודעות בלוג 'עצמו, משתמשים יכולים להשתמש גם הכתובת הישנה בעת יצירת קישורים נכנסים התייחסות. All these values in the database will need to be changed when WordPress is moved. כל הערכים הללו באתר יהיה צורך שונה כאשר 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. המדריך הבא יראה לכם אילו שדות מסד נתונים כי יש הפניות או ערכים הקשורים הבלוג של כתובות אתרים שברצונך לשנות. Note that this guide is not about how to move WordPress blog from one server or host to another new hosting service. שימו לב שמדריך זה לא על איך להעביר בלוג WordPress מהשרת המארח אחד או לשירות אחר אירוח חדשים.
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). לאחר הבלוג הועברה (להעתיק קבצים על כל מקרה של העברת שרת או מיקום או שם תחום חדש שצריך מופצות ברחבי האינטרנט עבור שם תחום חדש), הדבר הראשון שצריך לשנות הוא לספר את המיקום בלוג וורדפרס חדש (wp-config. PHP אמור להיות ללא שינויים, ו. קובץ htaccess צריך להיות גם ללא שינויים. אם מסיבה כלשהי mod_rewrite כללי כתובות ידידותיות כבר לא עובד, אתה תמיד יכול להתחדש. קובץ htaccess דרך דף WP המינהל של עדכון 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. ערך זה ניתן לשנות באמצעות וורדפרס דף אפשרויות, אבל אם אתה כבר לא יכול לגשת אל כתובת הבלוג הישן, אתה צריך לשנות את הערך דרך מסד הנתונים MySQL.
Note: The guide uses SQL statements based on הערה: מדריך משתמש משפטי SQL על בסיס MySQL replace() function MySQL להחליף () function to modify the database. כדי לשנות את מסד הנתונים. 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. כדי להפעיל שאילתות SQL, להתחבר אל מסד נתונים MySQL, כי וורדפרס טבלאות הבתים דרך phpMyAdmin או להתחבר לשרת DB ולהפעיל לקוח MySQL כמו השורש.
To update WordPress options with the new blog location, use the following SQL command: כדי לעדכן את אפשרויות WordPress עם מיקום הבלוג החדש, להשתמש פקודת SQL הבאה:
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. אחרי זה אתה תצטרך לתקן כתובות של ועמדות דפי וורדפרס, אשר תורגם מן הקליע לפרסם, לאחסן wp_posts טבלת מסד נתונים כמו השדה GUID. 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: בתחום זה ערכי כתובת מאוחסנים כתובות מוחלט במקום כתובות יחסית, כך זה צריך להיות שונה עם שאילתת SQL הבא:
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. אם קישרת באופן פנימי בתוך הבלוג הודעות או דפים עם כתובות מוחלט, קישורים אלה יצביעו על מיקומים טועה אחרי תעביר את מיקום הבלוג. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages: השתמש הבאות פקודות SQL כדי לתקן את כל הקישורים הפנימיים אל הבלוג עצמו בכל ועמדות דפי וורדפרס:
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. לדפדף בלוג WordPress כדי לבדוק אם הכל בסדר. You also need to re-login to WP Administration as authentication cookie has now became invalid due to different domain. אתה גם צריך להתחבר מחדש אל WP המינהל כמו עוגייה אימות עתה הפך לא חוקיים בשל תחום אחר.
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- Using PHP-MySQL Persistent Connections to Run WordPress Blog שימוש ב-MySQL PHP Persistent Connections כדי הפעלה בלוג WordPress
- Replace Google Blog Search with Technorati for Incoming Links in Dashboard of WordPress החלף עם Google Blog Search Technorati עבור Incoming Links שבלוח המחוונים של וורדפרס
- WLWManifest Disabler Plugin to Remove XLM Link in WordPress Blog Header WLWManifest Disabler תוסף להסיר קישור xlm ב בלוג WordPress כותרת
- AdSense and Display Banner Ads Rotation in WordPress Blog or Websites AdSense ו-הצגת מודעות באנר סיבוב ב אתרי אינטרנט או בלוג WordPress
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) כיצד ועל הצג רשימת WordPress הודעות זה הערות ו pings Off (לא מרשים)
- Moderate WordPress Blog Comments Via Moderator with Desktop Client מתונה בלוג WordPress תגובות באמצעות מנחה שולחני עם הלקוחות
- How to Rename or Move Oracle Tablespace Datafile to Another Location כיצד לשנות שם או להעביר אורקל Tablespace Datafile אל מיקום אחר
- Google Domain Names Registration and Search for Free Apps for Your Domain גוגל שמות מתחם הרשמה חיפוש עבור חינם Apps עבור התחום שלך
- Integrate and Display Google AdSense for Search and Co-Op Custom Search Engine Results in WordPress Blog Page Template שלב הצגת Google AdSense לחיפוש ו Co-op תוצאות מנוע החיפוש המותאם אישית של בלוג WordPress תבנית
- How to Delete Existing WordPress Post Revisions Stored/Saved כיצד למחוק קיימות מהדורות פוסט וורדפרס המאוחסנים / שמורים










































October 26th, 2009 23:01 26 אוקטובר 2009 23:01
Thank you for this advice. תודה לך על העצה הזאת. It really helped me. זה באמת עזר לי.
Sam סם
October 17th, 2009 17:41 17 אוקטובר 2009 17:41
Thanks for the tips ! תודה על העצות!