Wordpress Hack #12: Changing Permalink Structure Seamlessly وورد هاك # 12 : تغير Permalink هيكل بسهولة تامة
1,305 views - 1،305 جهات النظر --Posted in: نشر في :
1,305 views 1،305 آراء
Please note: This page was originally written in English. الرجاء ملاحظة : هذه الصفحة كان أصلا مكتوب باللغة الانكليزية.
The original post can be viewed الأصلي بعد ويمكن النظر إلى here هنا .
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Ever wanted to change your Wordpress permalink structure but were afraid of 404 errors and SEO problems? من أي وقت مضى إلى تريد تغيير هيكل وورد permalink لكن الخوف من 404 من كبار المسئولين الاقتصاديين الأخطاء والمشاكل؟ I have a Wordpress Hack to fix all your problems right here! وورد لدي هاك لاصلاح جميع مشاكلك الحق هنا!
This is installment #12 of وهذا القسط من # 12 30 Wordpress Hacks in 30 Days 30 المأجورون وورد في 30 أيام !
This Wordpress hack is one that I planned on writing write after the last one about وورد هذا الإختراق واحد هو أن المخطط الأول على كتابة الكتابة بعد واحد عن الماضي rotating and recycling posts out of your archives إعادة تدوير الوظائف وتناوب من المحفوظات الخاصة بك and on to your home page. وعلى لصفحتك الرئيسية. Mainly because there is one thing I didn’t address before, and that’s you permalink structure. أساسا لأن هناك شيء واحد أنا لم تعالج من قبل ، وهذا لكم permalink هيكل. In Wordpress your “permalink” structure is your URL. وورد الخاص بك في "permalink" الهيكل هو عنوان موقعك. By traditional default Wordpress blogs have a day, month, year structure to the URL like this: من جانب التقصير وورد التقليدية بلوق لها اليوم ، الشهر ، السنة هيكل لمثل هذا العنوان :
www.site.com/05/01/2008/my-new-post
In your Wordpress dashboard in either settings (WP 2.5) or options (before WP 2.5) -> “Permalinks” you have the ability to change the structure to whatever you want. وورد في لوحة القيادة الخاصة بك في أي من إعدادات (الفسفور الابيض 2.5) أو خيارات (الفسفور الابيض قبل 2.5) --> "Permalinks" لديك القدرة على تغيير هيكل إلى ما تريد. In the beginning (because they don’t know any better) most people don’t and leave the date default. في بداية (لانهم لا يدرون أي أفضل) أكثر الناس لا وترك التاريخ للتقصير. Even حتى Matt Cutts says don’t use post dates in URL’s مات Cutts تقول لا بعد استخدام التواريخ في عنوان 's . Why not? لماذا لا؟
Wordpress Hack #10 should have been a prime example - if you’re going to be recycling your old posts to the home page, it’s going to change the published date to the current day - right? وورد هاك # 10 كان ينبغي أن يكون مثالا رئيسيا -- إذا كنت ستكون إعادة تدوير القديمة الخاصة بك وظائف إلى الصفحة الرئيسية لانها تسير لتغيير تاريخ نشر لالحالي اليوم -- الحق؟ Well, it won’t change the permalink (URL) - and it will still reflect the old date. حسنا ، انها لن تغير permalink (عنوان) -- وأنها سوف تعكس القديمة لا تزال حتى الآن. You could change the permalink structure manually in your dashboard, but that would just create new URL’s for every single post (removing the date portion), so every single bookmark and every single search engine listing you ever had will now be an “Error 404″ page. هل يمكن تغيير هيكل permalink يدويا الموجود في لوحة ، ولكن ذلك لن يؤدى سوى الى خلق الجديد 'sعنوان واحد لكل وظيفة (إزالة جزء من تاريخ) ، كل ذلك إشارة مرجعية واحدة كل واحد محرك البحث قائمة لكم من أي وقت مضى الآن قد يكون" خطأ 404 "صفحة. Ouch! أوتش!
Over time if you write new posts every day or every week you probably aren’t going to want the post dates to matter as much, since new readers will be coming on board all the time. وبمرور الوقت إذا كتبت وظائف جديدة كل يوم او كل اسبوع لكم وربما لا تريد الذهاب الى ما بعد موعد لهذه المسألة كثيرا ، منذ القراء الجديدة القادمة سوف يكون على متن كل الوقت. In addition - maybe you’ll want to move out of Wordpress to another blogging platform someday that doesn’t have a date based post convention. وبالإضافة إلى -- ربما عليك تريد الخروج من وورد لآخر منصة المدونات يوما ما أن ليس لديها حتى الآن على أساس ما بعد الاتفاقية. If you’re in the same boat I was, you are now in quite the predicament - what to do, what to do?? إذا كنت في نفس القارب وكنت ، انت الآن تماما في ورطة -- ماذا نفعل ، ماذا نفعل؟؟ Once again, enter a lifesaver Wordpress plugin “ مرة أخرى ، اكتب المنقذ وورد البرنامج المساعد " Dean’s Permalink Migration دين Permalink الهجرة !” It’s very simple to use, and will solve all your permalink problems. ! "انه بسيط جدا لاستخدام ، وسوف تحل جميع المشاكل permalink الخاصة بك.
First install and enable the plugin. أولا تثبيت وتمكين البرنامج المساعد. Then in options or settings -> “PermalinksMigration” in your Wordpress dashboard you’ll see a simple text field for only one option: ثم في خيارات أو إعدادات --> "PermalinksMigration" في لوحة القيادة الخاصة بك وورد سترى نص بسيط مجال لخيار واحد :

All you have to do is enter your OLD permalinks structure in that field. كل ما عليك القيام به هو دخول permalinks الهيكل القديم الخاص بك في هذا الميدان. For most of you that’s going to be: وبالنسبة لمعظم لكم ان هذه ستكون :
/%year%/%monthnum%/%day%/%postname%/ / ٪ سنة ٪ / ٪ ٪ monthnum / يوم ٪ ٪ / ٪ ٪ postname /
What I did was open up two tabs in my browser, both with my WP dashboard open. ما فعلته هو فتح اثنين من علامات التبويب في متصفحي ، على حد سواء مع بلدي الفسفور الابيض لوحة قيادة فتح. In one tab I had settings -> Permalinks and the other settings -> “PermalinksMigration”. في واحد كان علامة التبويب إعدادات --> Permalinks وغيرها من إعدادات --> "PermalinksMigration". I just copied and pasted my “permalinks” structure to “permalinksMigration”. أنا فقط نسخ ولصق بلادي "permalinks" هيكل "permalinksMigration". Then in “permalinks” I changed the structure from this: ثم في "permalinks" أنا غيرت هيكل من هذا :
/%year%/%monthnum%/%day%/%postname%/ / ٪ سنة ٪ / ٪ ٪ monthnum / يوم ٪ ٪ / ٪ ٪ postname /
to this: لهذا :
/%postname%/ / ٪ ٪ postname /
Then I click “update” to save each tab, one immediately after the other. ثم انقر على "تحديث" لإنقاذ كل علامة التبويب ، واحدة بعد الأخرى على الفور. To recap- what I’ve done here is removed the dates from my permalink (URL) structure, and the “Dean’s Permalink Migration” knows what my “old” structure was, and it will automatically redirect each and every page using old date based structure to the new page. وخلاصة الأمر بين ما فعلته هنا هو ازالة تواريخ permalink من بلادي (عنوان) هيكل ، و "دين Permalink هجرة" يعلم ما بلادي "القديمة" وكان هيكل ، وانها سوف تعيد توجيه تلقائيا كل صفحة باستخدام القديمة التاريخ على أساس هيكل إلى صفحة جديدة. You won’t lose any hits from bookmarks or search engines at all, and all of your URL’s will be much cleaner and shorter from now on. ولن تفقد أي من الإشارات المرجعية أو يضرب محركات البحث في كل شيء ، وجميع من وصلتك 'sسيكون أقصر بكثير وأنظف من الآن فصاعدا.
The ONLY drawback I could think of was, this plugin only works ONE TIME. والعيب الوحيد ما كنت أفكر فيه هو ، هذا البرنامج المساعد لا تعمل إلا وقت واحد. Since it only has one field for previous permalink structure to redirect - it can only redirect the last change you made. لأنه واحد فقط لميدان السابق permalink هيكل لإعادة توجيه -- أنه لا يمكن إلا أن إعادة توجيه الماضي تغيير لكم. Hint to the plugin auther, you could hack this plugin to allow for multiple changes, and adding the ability to do the same for category permalinks would be a boon too! في إشارة إلى صاحب البلاغ البرنامج المساعد ، هل يمكن الإختراق هذا البرنامج المساعد للسماح للتغييرات متعددة ، واضاف القدرة على أن تفعل الشيء نفسه لفئة permalinks سيكون نعمة للغاية!
Now I can just hear somebody screaming from the back of the room “what about my pagerank, what about my pagerank!”. الآن فقط استطيع ان تسمع شخص ما يصرخ من الجزء الخلفي من الغرفة "ماذا عن تصنيف الصفحة بلادي ، بلادي وماذا عن تصنيف الصفحة!". In effect, to search engines, indexers, and crawlers this should be the same as a 301 permanent redirect. في الواقع ، لمحركات البحث ، والفهرسة ، وهذه الزواحف يجب أن تكون نفس أ 301 إعادة توجيه دائمة. If you had pagerank assigned to any of your individual posts, it should transfer to the new URL over time - typically from a few weeks to a few months depending on google’s update schedule. لو كان لديك تصنيف الصفحة المسندة إلى أي من وظائف الفرد ، ينبغي أن نقل إلى العنوان الجديد مع مرور الوقت -- عادة من بضعة أسابيع إلى بضعة أشهر تبعا لجوجل تحديث الجدول الزمني. I personally really don’t worry about pagerank anymore at all - you probably shouldn’t either. حقا وأنا شخصيا لا تقلق بشأن الموقع بعد الآن على الإطلاق -- وربما لا ينبغي لكم سواء.
I hope that this hack helped you as much as it helped me once found it. وآمل أن يكون هذا الإختراق ساعدت لكم بقدر ما ساعدني مرة واحدة وجدت. If you have any comments to make this post better, or question - please comment now! إذا كان لديك أي تعليقات لجعل هذه وظيفة أفضل ، أو السؤال -- يرجى التعليق الآن!
Tags: العلامات : permalinks , ، wordpress-hacks ووردبرس] - المأجورون




















May 1st, 2008 at 3:32 pm مايو 1st ، 2008 في الساعة 3:32
Nice hack, but as long as you are familiar with wordpress, it shouldn’t be an issue. نيس الإختراق ، ولكن طالما انك على دراية ووردبرس] ، وينبغي أن لا يكون مسألة. Either that or for lazy people. إما أن لكسول أو شعب.
Shudogg Dot Com - Shudogg دوت كوم -- Make Money Online Blogging للكسب عبر الانترنت المدونات
Make Money Online Bloggings last blog post.. للكسب عبر الانترنت Bloggings الماضي بعد انتهاء بلوق.. Adsense Secrets Volume 4 Adsense أسرار المجلد 4
May 1st, 2008 at 6:00 pm مايو 1st ، 2008 في الساعة 6:00
it doesn’t matter how familiar you are with Wordpress, if you change your Wordpress permalinks without this plugin you screw up all your search listings and anyone who clicks on one or uses a bookmark with get a 404 error. لا يهم كيف مألوفة انك مع وورد ، إذا قمت بتغيير وورد الخاص بك permalinks دون هذا البرنامج المساعد لكم كل برغي البحث القوائم وأي شخص ينقر على واحد أو يستخدم الإشارة المرجعية مع الحصول على 404 خطأ. There is no convention in Wordpress to accomodate for changing permalink structure and redirecting the old URL’s to the new structure. لا يوجد اتفاقية وورد في لاستيعاب لتغيير هيكل permalink القديمة وإعادة توجيه عنوان 'sإلى الهيكل الجديد. It has nothing to do with being lazy. ليس له أي علاقة مع كسولا.
If you were familiar with Wordpress, you’d know that when you make a comment, you don’t have to include a link back to your site in the comment, because you automatically get one at the top of your comment. إذا كنت على دراية وورد ، كنت عندما نعلم أن جعل لكم تعليق ، لم يكن لديك ليشمل وصلة إلى موقعك في التعليق ، لأنك تلقائيا الحصول على واحد في أعلى تعليقك. Since I have CommentLuv installed you even get a link back to your last post in your RSS feed! وبما أنني CommentLuv تركيب لكم حتى الحصول على وصلة الى حسابك الخاص بك في الماضي ما بعد آر إس إس!
May 2nd, 2008 at 11:17 am مايو 2nd ، 2008 في الساعة 11:17
I’m happy I learned about permalinks before starting any WordPress sites!!!! انا سعيدة علمت عن permalinks قبل البدء في أي مواقع ووردبرس]!!
I dead a ton of reading on it. أنا القتلى من نصف طن من القراءة عليه. There are all kinds of opinions. وهناك أنواع من جميع الآراء. I ended with domain/%postname%/ only. انتهت المجال الأول / ٪ postname ٪ / فقط. For the very reasons JT talks about. وللأسباب ذاتها التي تتحدث عن ج ت. I didn’t want to end up having to redirect everything at some future point. لم أكن أرغب في نهاية الأمر إلى إعادة توجيه كل شيء في وقت ما مستقبلا. The one knock I heard about this permalink structure is, it slows down the database?!?!?! واحدة طرق سمعت عن هذا permalink الهيكل ، يبطئ قاعدة البيانات؟!؟!؟! I have no idea if that is true. ليس لدي فكرة إذا كان ذلك صحيحا. The person stated it on a forum and insited that an ID must be put with it. الشخص الذي ذكر أنه على منتدى وinsited أن هوية ويجب وضع معها. Well, after viewing tons of WordPress sites that rank well I noticed they didn’t bother with the ID. حسنا ، بعد مشاهدة طن من ووردبرس] المواقع مرتبة جيدا أن لاحظت انهم لم يعيروا اهتماما الهوية. . . maybe I’ll end up with a slow database. ربما سوف ينتهي مع قاعدة البيانات بطيئة. . . don’t know but I would think this issue would have been brought up to the WP programmers. لا أعرف ولكن أعتقد أن هذه المسألة وقد رفعت إلى الفسفور الابيض المبرمجين.
Charles تشارلز
June 2nd, 2008 at 7:21 am يونيو 2nd ، 2008 في 7:21 صباحا
Quick question: When I change the permalink structure on my Wordpress 2.5 blog to /%category%/%postname%/, the old posts’ url doesn’t change. سؤال سريع : عندما تغير هيكل permalink على بلدي بلوق وورد 2.5 ل/ فئة ٪ ٪ / ٪ ٪ postname / ، القديم وظائف 'رابط لا تغيير. The links seem to all work, but the url stays the same. الروابط يبدو كل عمل ، ولكن يبقى عنوان الموقع نفسه. What am I missing? ما أنا في عداد المفقودين؟
DRs last blog post.. دائرة الاستعلام والأمن الماضي بعد انتهاء بلوق.. Make Money Blogging–Setting Up a WordPress Blog in 3 Easy Steps كسب المال Bloggingà ¢ ألف ، ¬ × و€ œSetting حتى أ وردبرس] المدونة في 3 خطوات سهلة
June 2nd, 2008 at 8:12 pm يونيو 2nd ، 2008 في الساعة 8:12
@DR - I’m not sure what you mean. @ د -- لست متأكدا ما يعني كلامك. You changed your permalink structure and the URL’s stayed the same - have you enabled the permalink migration plugin? هل تغير هيكل permalink الخاصة بك وعنوان الموقع 'sبقي على نفس المستوى -- هل مكن البرنامج المساعد permalink الهجرة؟
August 11th, 2008 at 1:01 am أغسطس 11th ، 2008 في 1:01 صباحا
[...] your posts doesn’t change when the old posts are “shifted” to the home page. [...]رسائلك لا يغير من العمر عندما وظائف "تحول" إلى الصفحة الرئيسية. Read How to change permalink structure seamlessly if that situation applies to you. كيف تقرأ لتغيير هيكل permalink بسلاسة لو أن الحالة تنطبق عليك. Want automatic updates? نريد التحديثات التلقائية؟ Subscribe to our RSS feed or Get [...] في لائحة آر إس إس أو احصل على [...]
September 8th, 2008 at 2:40 am سبتمبر 8th ، 2008 في 2:40 صباحا
Do you know if you can change the page urls. هل يمكنك معرفة ما إذا كان تغيير الصفحة عناوين المواقع. I can change the permalink post structure but I want pages to end in .html. أستطيع تغيير permalink هيكل الوظائف ولكن أريد في نهاية صفحة ل. هتمل. Well, a client does. حسنا ، لا أحد الزبائن. I’ma bit stuck. أنا تمسك بعض الشيء.
Any ideas? أي أفكار؟
Thanks شكرا
Jason جايسون
Jasons last blog post.. Jasons الماضي بعد انتهاء بلوق.. Heavyweight pages الصفحات في الوزن الثقيل
September 8th, 2008 at 7:36 am سبتمبر 8th ، 2008 في 7:36 صباحا
@Jason - first of all, tell your client that he’s nuts, and in today’s day and age there’s no reason to have any page end in “.html” because google just doesn’t care. @ جايسون -- أولا وقبل كل شيء ، أقول عميلك انه المكسرات ، واليوم في اليوم وهذا العصر لم يكن هناك سبب لوجود أي صفحة في نهاية ". هتمل" غوغل) إنه لا مجرد الرعاية. I mean, come on - google can even index flash files now. يعني ، يأتي على -- البريد الإلكتروني يمكن أن مؤشر حتى الآن ملفات فلاش. That’s like giving someone a piece of bread, and telling them to call it’sa “biscuit”. هذا مثل إعطاء شخص قطعة من الخبز ، ويقول لهم انها لدعوة "بسكويت". They don’t care what you call it - they know when they’re eating it it’s still a piece of bread. انهم لا يأبهون لكم الكلمة لأنها -- وهم يعرفون انهم عندما يأكل أنه ما زال قطعة من الخبز.
In any event, if you client still insists on being a stubborn little know-it-all…you can still do this. في أي حال ، إذا كنت لا تزال تصر على العملاء ويجري عنيدة قليلا اعرف انها للجميع... لا يزال بإمكانك أن تفعل ذلك. Just change your permalink from /%postname%/ to /%postname%.html and I believe that should do it! مجرد تغيير من permalink / ٪ postname ٪ / الى / ٪ postname ٪. هتمل وأعتقد أنه ينبغي القيام بذلك!
September 8th, 2008 at 7:40 am سبتمبر 8th ، 2008 فىالساعة 7:40 صباحا
Oh Yes He knows he is nuts! أوه نعم انه يعرف انه هو الجوز! I tell him daily. أقول له يوميا.
That hack fixes the posts but bizarrely not the pages. أن يحدد وظائف الإختراق بشكل غريب ولكن لا الصفحات.
Maybe I’ll have to play with the htaccess file. ربما سآخذ للعب مع ملف htaccess.
If I find the answer I’ll post it! إذا وجدت الجواب سوف ما بعد!
Jason جايسون
Jasons last blog post.. Jasons الماضي بعد انتهاء بلوق.. The great social marketing experiment – Part 1 – The beginning التسويق الاجتماعي الكبير تجربة × و€ "الجزء 1 ألف €" بداية
September 8th, 2008 at 2:45 pm سبتمبر 8th ، 2008 في الساعة 2:45
Great post, I am been looking for articles about this. وظيفة كبيرة ، وأنا كانت تبحث عن مقالات عن هذا.
swanky gift ideass last blog post.. فاخر هدية ideass الماضي بعد انتهاء بلوق.. 3 Badass New Terran Gameplay Videos For Starcraft 2 3 Badass جديدة أرضي اللعب كليب Starcraft 2
September 17th, 2008 at 2:09 pm سبتمبر 17th ، 2008 في الساعة 2:09