WordPress Tip on Permalink Options WordPress الدائم على نصيحه خيارات
This tip covers configuration in Options/Permalinks [Edit Permalink Structure] for WordPress users. هذه النصيحه ويشمل التكوين في خيارات / permalinks [تحرير الدائم هيكل] لWordPress المستخدمين. My version is WordPress 1.5. بلدي WordPress النسخه 1،5.
By default WordPress uses a query string to identify a post. WordPress افتراضي يستخدم لتحديد عبارة طلب وظيفة. This is neither search engine friendly nor human friendly. هذا ليس محرك بحث ودية ودية ولا حقوق. A better way is to use a custom URI to better identify your posts. افضل طريقة هى استخدام اوري مخصص للتعرف بصورة افضل على رسائلك. Many bloggers include a date as part of the permalink. وتشمل العديد من المدونين حتى الآن كجزء من الدائم. I advise against it انصح ضدها . The date of the post is not so important as to be part of the URI! تاريخ ما بعد ليست من الاهميه بحيث ان تكون جزءا من اوري!
My suggestion is to use a simple structure containing the post-slug as your Permalink URI. اقتراحي هو استخدام بسيطة تحتوي على هيكل ما بعد الدوده البزاقه اوري الدائم لكم. I use: انا استعمل :
Structure: /index.php/archive/%postname%/ هيكل : / index.php / ارشيف / ٪ postname ٪ /
Note that there is an index.php embedded. علما ان ثمة جزءا لا يتجزأ من index.php. This is fine with search engines and humans too. وهذا حسن مع محركات البحث والبشر أيضا. And it will work great. وإنها ستعمل كبيرة. It doesn’t require mod_rewrite functionality or change to htaccess. انه لا يحتاج الى تغيير او وظيفة او mod_rewrite الى htaccess. Something as simple as this will work in all configurations. الأمر بهذه البساطه ، حيث سيؤدي ذلك الى العمل في جميع التكوينات.
For category base I use simply: /index.php/category الاساس الاول لفئة استخدام ببساطة : / index.php / الفئة
This is just a simple example. وهذا مجرد مثال بسيط. You can make your URI as complicated as you want. يمكنك جعل حياتك اوري معقدة تريد. Just remember to test it. فقط تذكر لاختباره.
Personally I like it short and simple. شخصيا أحب قصيرة وبسيطة.
Update 1 : Please refer to the comments below for points and counterpoints on this topic. تحديث 1 : يرجى الرجوع إلى التعليقات الواردة ادناه للاطلاع على نقاط وcounterpoints حول هذا الموضوع.
Update 2 : The objections raised by some people is that having an identical named title for posts will cause problems with WordPress. تحديث 2 : الاعتراضات التي اثارتها بعض الناس هو ان وجود اسم مطابق للعنوان وظائف سيتسبب فى حدوث مشكلات مع WordPress. This is not a valid observation anymore. وهذه ليست صالحة للمراقبة بعد الآن. In other words you can have 10 posts named “Happy New Year” and WordPress will assign unique post-slug to each. وبعباره اخرى يمكن ان يكون لديك 10 وظيفة باسم "سنة جديدة سعيدة" وسوف يقوم WordPress فريدة من نوعها في مرحلة ما بعد الى كل الدوده البزاقه. Simply said this approach is without any drawbacks AFAIK. ببساطة : قال هذا النهج دون اي عوائق afaik.
Update 3 : Cem commented: تحديث 3 : علق جيم :
For future reference, I was able to get permalink URL rewriting working in WordPress by creating a php.ini at my domain root with the following configuration: للرجوع اليها في المستقبل ، كنت قادرا على الحصول على العنوان الدائم في اعادة صياغه العمل من خلال تهيئة WordPress php.ini في نطاقي الجذر مع التكوين التالية :
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
Several people have found it useful on various environments including but not limited to IIS on windows as can be seen from the comments. وقد وجدت العديد من الاشخاص انه من المفيد بما في بيئات مختلفة على سبيل المثال لا الحصر IIS على ويندوز وكما يتضح من التعليقات. Thanks Cem for sharing! شكرا لتقاسم سيم!
BTW: Personally I use /archive/%postname%/ for my راجع للشغل : انا شخصيا استخدام / ارشيف / ٪ postname ٪ / لبلادي Stem Cell Research Blog ان بحوث الخلايا الجذعيه بلوق without requiring any changes. دون ان يتطلب ذلك اي تغييرات.
The greatest benefit is that you don’t have to embed index.php as part of URL, possibly slightly increasing your SERP. أكبر فائدة ان لم يكن لديك لتضمين index.php كجزء من موقع ، وربما زيادة طفيفة serp الخاص بك.
Filed under المقدم بمقتضى Headline News أهم الانباء , ، How To كيف , ، Pro Blogging الموالية بلوغغينغ , ، Web شبكة , ، Windows نوافذ , ، WordPress | |
| |
RSS 2.0 ار اس اس 2،0 | |
Email this Article ارسل هذه المادة
You may also like to read ويمكنك ايضا ان تقرأ |





March 16th, 2005 at 12:19 pm مارس 16th ، 2005 في الساعة 12:19
I think you’re making a mistake discouraging the use if the date in URI’s. واعتقد انك تستفيد من الخطأ عدم تشجيع استخدام واذا كان للتاريخ في اوري. Wordpress does not require post slugs to be unique. WordPress لا يحتاج الى ان يكون الدود البزاق وظيفة فريدة من نوعها. So if all you is ‘/archive/slug’ the chances of having a collision go increase greatly over time. حتى اذا كان كل ما عليك هو '/ ارشيف / الدوده البزاقه' احتمالات وجود اصطدام زيادة الذهاب الى حد كبير على مر الزمن. Can you really be sure that in the next x years you’ll never recycle a post title, ever? هل يمكن حقا أن تكون على يقين من ان في العاشر السنوات المقبلة لن تضطر ابدا اعادة تدوير ما بعد العنوان ، من اي وقت مضى؟
Adding the category helps, of course, because then you’d have to duplicate the title and category to cause problems. اضافة فئة يساعد ، بطبيعة الحال ، لان ذلك الحين كنت قد تكرر عنوان ويسبب مشاكل لفئة. But the date adds a unique identifier to the string that is guaranteed not to be repeated. ولكن حتى الآن مبين للاوصاف الفريده ، ويضيف الى الجمله أن يضمن ألا تتكرر.
I use a month-year combination for my date field, figuring that within anygiven month I’m unlikely to repeat slugs. انا استعمل شهر - سنة الجمع الميداني لبلدي حتى الآن ، ان الاعتقاد داخل anygiven الشهر انا اكرر من غير المحتمل ان الدود البزاق. But even that could be seen as too restrictive by some. ولكن حتى ذلك يمكن ان ينظر الى تقييدي للغاية من جانب بعض.
You’re also overlooking that adding the date adds a sense of relevance to your links. أنت ايضا ان يطل على تاريخ ويضيف اضافة احساس صلة صلاتك. Do i care about content more than a year old? هل يهمه محتوى اكثر من سنة من العمر؟ No? لا؟ Then maybe I don’t need to follow that link i saved that’s dated 1999. ثم أنني ربما لا حاجة الى المتابعة التي تربط بين هذا وانني أنقذت مؤرخة عام 1999.
March 20th, 2005 at 4:03 am مارس 20th ، 2005 في الساعة 4:03
Why I discourage embedding date in URL’s (including WordPress Permalinks and also other CMS) لماذا أنا حتى الآن في ثني ترسيخ موقع) بما WordPress permalinks أيضا وغيرها من سم)
The reasons I discourage date’s in a permalink are: It is redundant information as date is already part of the post information and need not be additionally within the url. اسباب تثبيط الاول في تاريخ 'sالدائم هي : انه حتى الآن معلومات زائدة كما هي بالفعل جزءا من وظيفة الإعلام وليس من الضروري ان يكون بالاضافة الى داخل موقع. Search engines like google, which gives importance to words in URL’s will … محركات البحث مثل غوغل ، التي تعطي اهمية لكلمات في موقع ارادة…
March 20th, 2005 at 4:05 am مارس 20th ، 2005 في الساعة 4:05
Squeg, Squeg ،
Please read my الرجاء قراءة بلادي article on this topic المادة حول هذا الموضوع to specifically address your concern. ان تعالج على وجه التحديد قلقكم.
Let me know your thoughts. واسمحوا لي ان اعرف افكارك.
March 21st, 2005 at 9:53 am مارس 21st ، 2005 في الساعة 9:53
I definitely agree that the data is not always necessary in a url. انني بالتأكيد نتفق على أن البيانات ليست دائما ضروريه في العنوان. But I still think using it in most permalink structures does more good than bad. ولكن ما زلت اعتقد انها تستخدم في معظم هياكل الدائم هل طيبة اكثر من سيئ.
I will concede that the date makes the url “uglier.” So I recommend using the most compact date structure you can to meet your needs. انا اعترف ان التاريخ يجعل عنوان "اقبح" ، فما كان أوصى باستخدام اكثر الميثاق حتى الآن هيكل يمكنك لتلبية احتياجاتك. For some that may mean leaving it out. بالنسبة لبعض ما قد يعني ان يترك ذلك. For me it means domain/archives/MM-YYYY/slug. لأنها تعني ، في نظري الملك / الارشيف / مم - س س س س / الدوده البزاقه. I wish i’d left the word “archives” out as the date pretty much implies that. كنت اود ان ترك كلمة "المحفوظات" الى اقتراب موعد جميلة يعني ان الكثير.
I’m not sure that I follow how having the date in the address “poisons” the search engines. لست متأكدا من أن اتابع كيف لها حتى الآن في معالجة "السموم" محركات البحث. I’d like to hear more clarification on what you mean by this. ويهمني ان اشير الى الاستماع الى المزيد من التوضيح بشان ما يعني هذا من قبل.
Almost all non “time-sensitive” information really is time sensitive if it’s old enough. تقريبا جميع الدول غير "الحساسة للوقت" الوقت قد حان فعلا المعلومات الحساسة لو كان ما يكفي من العمر. The only real exceptions are pages where the content is continually updated/replaced with new information as it ages. الاستثناءات الوحيدة الحقيقية هي صفحة حيث المحتوى تحديثها باستمرار / الاستعاضه عن المعلومات الجديدة لانها الاعمار.
Take for instance, a guide to creating web-pages written in 1998. تأخذ على سبيل المثال ، دليل لايجاد صفحات مكتوبة على شبكة الانترنت في عام 1998. If it was well-written in 1998 it may have attracted many links, moving it up the search engines. اذا كانت جيدة وكتبت في عام 1998 أنه قد اجتذبت العديد من الوصلات ، وجعل الوصول اليها حتى محركات البحث. But if it has not been updated, then it is really quite behind the times with reguard to today’s best practices. ولكن اذا لم يتم تحديثه ، ثم ان الواقع تماما وراء مرات مع reguard اليوم لافضل الممارسات. It may still be technically accurate within the framework for which it was created, but it’s still dated. انه قد يكون من دقيقة من الناحية التقنيه ضمن اطار التي انشئت من اجلها ، بل انه ما زال مؤرخة. Someone looking at this page today needs to know right away that it’s old information and they should look elsewhere. شخص ما الى هذه الصفحه اليوم في حاجة الى ان يعرف على الفور ان المعلومات القديمة وانها يجب ان تنظر في اي مكان آخر.
As you can see from your own kubrik installation under wordpress, not every page actively displays the date in a prominent location. كما يمكنك ان ترى بنفسك من kubrik التركيب تحت الكلمات ليست كل صفحة بنشاط يعرض حتى الآن في مكان بارز.
It’s also worth mentioning that Wordpress (and probably other such systems) use the permalink you specifiy in your RSS as well as on your webpage. ومن الجدير بالذكر ايضا ان WordPress (وربما غيرها من مثل هذه النظم (استخدام الدائم لكم specifiy في ار اس اس الخاص بك وكذلك على صفحة الويب الخاصة بك. Many RSS readers will use the permalink, if it’s identified, as a unique identifier for the item in the feed. كثير من قراء ار اس اس وسوف تستخدم الدائم ، لو كان تم تحديدها ، كما تبين الاوصاف الفريده لهذا البند في الغذاء. Reader software can use that unique ID to enable further functionality for managing feeds and posts. برامج يمكن للقارئ ان استخدام معرف فريد من اجل اجراء مزيد من الوظائف لادارة الفيد وظيفة. In these circumnstances it’s even more beneficial to ensure that your permalinks are unique. في هذه circumnstances انه اكثر فائدة ليضمن لك permalinks هي فريدة من نوعها.
In the end, my comment isn’t so much about any given individual leaving the date out of their permalink structure. وفي نهاية المطاف ، تعليقي ليس كثيرا عن أي فرد من تاريخ مغادرته للخروج من الهيكل الدائم. It’s about dissuading all users from including it without first considering both the pro’s and con’s of doing so. ومن ثني عن كل المستخدمين بما فيها من دون النظر اولا في كل من وcon الموالية للمن القيام بذلك. Using the date may not always seem necessary, but it does add a bit of “future-proofing” should your needs change. تستخدم حتى الآن قد لا يبدو من الضروري دائما ، ولكنها لا تضيف شيئا من "تثبيت المستقبل" ينبغي ان تغير احتياجاتك.
My advice to new wordpress users when choosing a permalink structure would be to stick with “ugly” links for awhile until they can really get a feel for how they’d like to use their blog. ونصيحتي لWordPress الجديدة للمستخدمين اختيار عندما يكون الهيكل الدائم الى التمسك ب "البشعه" وصلات لawhile الى ان يتسنى لها حقا في التعود على الكيفيه التي تريد ان تستخدم علي بلوق. You can always add permalinks without causing damage. يمكنك دائما اضافة permalinks دون التسبب في اضرار. But once you set them up, you can’t really change the system without causing a lot of stuff that used to work, to fail. ولكن بمجرد الانتهاء من اقامتها ، لا تستطيع فى الواقع ان تغيير النظام دون التسبب في الكثير من الاشياء التي استخدمت في العمل ، الى الفشل.
March 23rd, 2005 at 6:12 pm مارس 23rd ، 2005 في الساعة 6:12
Actually, mainstream WP user and WP developers argue against NOT using a date structure in the permalinks. والواقع ان التيار الرئيسي المستخدم رزمه العمل والمطورين ان يجادل في رزمه العمل لا تستخدم حتى الآن في هيكل permalinks. This has been argued on the forums several times. هذا وقد قيل عن منتديات عدة مرات.
Let’s say that on January 1st, 2004, you post “Happy New Year!”, and then on January 1st, 2005, you post “Happy New Year”. دعنا نقول ان الأول من كانون الثاني / يناير ، عام 2004 ، كنت ما بعد "سنة جديدة سعيدة!" ، ثم من كانون الثاني / يناير 1st ، 2005 ، كنت ما بعد "سنة جديدة سعيدة". You now have two posts at domain.com/happy-new-year and this sends your site into a spiral of chaos. لديك الان وظيفتين في domain.com / سعيدة - الجديدة - وهذه السنة يرسل موقعك الى دوامة من الفوضى. Having some sort of date structure will prevent this. وبعد ان نوعا من الهيكل حتى الان وسوف تحول دون ذلك.
March 24th, 2005 at 4:40 pm مارس 24th ، 2005 في الساعة 4:40
@MacManx I realize that this is a situation we need to guard against. @ MacManX ماكمانك إنني أدرك أن هذا هو الوضع ونحن بحاجة الى الحذر. Wouldn’t it however be better to modify WordPress to ensure uniqueness of post slug? بيد انه لن يكون من الافضل لضمان تعديل WordPress بعد انتهاء تفرد الدوده البزاقه؟ Let the title be same. وأود ان يكون العنوان نفسه. When WordPress realizes that the title is duplicate while publishing, it changes the post-slug to be unique by adding say date. WordPress عندما يدرك ان هذا العنوان هو تكرار النشر في حين انه بعد التغييرات الدوده البزاقه ان تكون فريدة من نوعها وذلك باضافه القول حتى الان. However as the post slug is not viewed by the public at large it doesn’t affect the user and the viewer? ولكن ما بعد الدوده البزاقه لا تعتبر من جانب الجمهور عموما لا تؤثر على المستخدم والمشاهد؟
What do you think. ما هو رأيك.
@Squeg Thanks for your informative comments. @ Squeg شكرا لتعليقات بالمعلومات الخاصة بك. I understand your concerns. افهم شواغلكم. I have updated both my post to include a link to your comments, so people can read both and choose whatever suits them best. لقد استكمال كل من بلدي بعد ان تدرج وصله الى تعليقاتكم ، حتى يستطيع كل من يقرأ وايا كان اختيار افضل يناسبهم.
Personally I like it simpler without the date as I have already stated, accepting the risk of duplicate post-slug. شخصيا أحب أن أبسط دون تاريخ كما سبق ان ذكرت ، الى قبول المخاطرة المزدوجه بعد الدوده البزاقه. I may actually do something to remedy the situation wrt. انا في الواقع قد نفعل شيئا لمعالجة هذا الوضع بخصوص. duplication in line with my idea described above. الازدواجيه في بلدي وتمشيا مع فكرة الوارد وصفها اعلاه.
Thoughts? الأفكار؟
March 25th, 2005 at 7:58 am مارس 25th ، 2005 في الساعة 7:58
While i like the date for a lot of things, I do agree sometimes it would be nice to ditch it. ورغم انني حتى الآن لمثل الكثير من الأشياء ، انني اتفق في بعض الاحيان يكون لطيفا الى الخندق. As we’ve both discussed, the biggest single inhibitor to leaving the date out of wordpress is that it doesn’t enforce unique post slugs. كما قمنا على حد سواء مناقشة ، واحد اكبر مانع من ترك حتى الان من اصل WordPress هي انه لا وظيفة فريدة من نوعها انفاذ الدود البزاق. It does seem like it would be pretty simple to hack wordpress so that it guaranteed a unique post slug by checking the database for exising instances of it’s proposed slug and then appending a number or something to the end of the slug. ويبدو انه سيكون مثل جميلة بسيطة لWordPress المأجور بحيث يضمن وظيفة فريدة من نوعها الدوده البزاقه عن طريق فحص قاعدة بيانات لحالات exising انه اقترح الدوده البزاقه وبعد ذلك الاضافه عدد او شيء الى نهاية للالدوده البزاقه. ( A warning at that time would be nice too, so you could modify the slug if you wanted. ) (أ الانذار في ذلك الوقت سيكون لطيفا للغاية ، لذا يمكن ان تعدل اذا كنت تريد الاحتفاظ الدوده البزاقه.)
I’d also like it to automatically truncate long slugs. انا ايضا مثل تلقائيا الى اقتطاع طويلة الدود البزاق. I know that might make it harder to determine what to type into the URL if you’re trying to guess (who really does that?) but it would definitely simplify the URLs. وانا اعلم آن قد يجعل من الاصعب تحديد ما الى نوع الى عنوان الموقع اذا كنت تحاول تخمين (من يفعل ذلك حقا؟) ولكنه بالتأكيد من شأنه ان يبسط عناوين المواقع. Some kind of options setting where you specified a maximum number of characters for the slug, would do the trick. إنها نوع من أنواع تحديد الخيارات حيث انك قد حددت الحد الاقصى لعدد الحروف لالدوده البزاقه ، من شأنه ان تفعل الخدعه.
April 2nd, 2005 at 9:39 pm نيسان / ابريل 2nd ، 2005 في الساعة 9:39
[...] rs, Link-blog03. [...]روبية ، وصلة blog03. April 2005 .htaccess 파일을 건드릴 필요 없는 방법 WordPress Tip on Permalink Options Comment RSS - [...] نيسان / ابريل 2005. Htaccess 파일 을 건드릴 필요 없는 방법 WordPress نصيحه الدائم على خيارات التعليق ار اس اس -- [...]
April 9th, 2005 at 6:00 am في التاسع من أبريل الجارى ، 2005 فى الساعة 6:00 صباحا
WordPress Permalinks Updated WordPress تحديث permalinks
I have updated my WordPress permalinks from: انا permalinks WordPress تحديث بلادي من :
/year/month/day/TITLE / السنة / الشهر / اليوم / اللقب
to: الى :
/archives/month/day/TITLE / الارشيف / الشهر / اليوم / اللقب
I just think It would look alot better like that. انا فقط اعتقد انها ستنظر بشكل افضل كثيرا من هذا القبيل. That’s all :)…. هذا كل شيء : (….
April 14th, 2005 at 6:51 am نيسان / ابريل 14th ، 2005 في الساعة 6:51
My server is running on Windows Server (brinkter.com) so I guess I’m SOL regarding permalinks. خادم بلدي يعمل على ويندز (brinkter.com) حتى انا اعتقد فيما يتعلق permalinks سول.
Any workarounds? اي workarounds؟
April 14th, 2005 at 7:04 am نيسان / ابريل 14th ، 2005 في الساعة 7:04
edit: that should be “brinkster.com” on the above post. تحرير : انه ينبغي ان يكون "brinkster.com" على الوظيفة المذكورة اعلاه.
April 14th, 2005 at 12:56 pm نيسان / ابريل 14th ، 2005 في الساعة 12:56
@Carlos The ideas in this post works on Windows server too. @ كارلوس الافكار الواردة في هذه الوظيفة يعمل على ويندز ايضا. In fact I have a copy of the site running on my Windows Apache server at Home. والواقع ان لدي نسخة من موقع بلادي على تشغيل ويندوز خادم اباتشي في المنزل.
This is the beauty of the idea. وهذا هو سر روعة هذه الفكره. It requires no special features enabled for it to work on any platform. انه لا يحتاج الى اي ميزات خاصة لأنها أتاحت للعمل على اي منصة.
April 16th, 2005 at 4:47 pm نيسان / ابريل 16th ، 2005 في الساعة 4:47
Yes, but it seems you need to have Apache running. نعم ، ولكن يبدو انك بحاجة الى اباتشي على التوالي. What I meant was that brinkster runs Windows Server 2003 as their web server platform, as opposed to Apache for Windows. ما قصدته هو أن brinkster يتعارض مع خادم ويندوز 2003 هو برنامج خادم الويب ، على عكس ويندوز لاباتشي. It seems you need apache’s mod_rewrite for the permalink options to work. يبدو انك بحاجة للاباتشي mod_rewrite الدائم للخيارات للعمل.
Thanks. شكرا.
April 16th, 2005 at 11:22 pm نيسان / ابريل 16th ، 2005 في الساعة 11:22
@Carlos @ كارلوس
No it doesn’t need apache running. أي أنها لا تحتاج لتشغيل اباتشي. To use my tip above you do not need mod_rewrite capability nor do you need .htaccess. نصيحه الى استخدام بلدي اعلاه ، لا لزوم mod_rewrite ولا القدرة التي تحتاج اليها. Htaccess. That is the beauty and simplicity of the solution. وهذا هو الجمال والبساطه من الحل. Just try it. انها مجرد محاولة. It will work. وسوف تعمل.
April 17th, 2005 at 4:50 am نيسان / ابريل 17th ، 2005 في الساعة 4:50
I get a “No input file specified.” when I try anything with the permalinks. احصل على "اي مدخلات الملف المحدد" ، وعندما احاول ان اعمل اي شيء مع permalinks.
April 17th, 2005 at 10:16 pm نيسان / ابريل 17th ، 2005 في الساعة 10:40
Am having issues too, trying to setup permalinks on Win2K3/IIS server. وبعد الساعة القضايا ايضا ، تحاول اعداد permalinks win2k3/iis على الخادم. It throws a 404 error, no matter what permalink structure i try! انها رميات أ 404 خطا ، مهما كان هيكل الدائم احاول!
April 17th, 2005 at 10:32 pm نيسان / ابريل 17th ، 2005 في الساعة 10:32
@Sajin & @Carlos Sajin @ @ & كارلوس
Try these exactly as typed (in Options/Permalinks) and let me know if you still have problems. تماما كما تحاول هذه المطبوعه) في خيارات / permalinks (واسمحوا لي ان اعرف اذا كنت لا تزال تعاني من مشاكل.
Structure: /index.php/archive/%postname%/ هيكل : / index.php / ارشيف / ٪ postname ٪ /
Category base: /index.php/category فئة القاعده : / index.php / الفئة
April 18th, 2005 at 6:00 am نيسان / ابريل 18th ، 2005 فى الساعة 6:00 صباحا
Angsuman, tried again, making sure to copy-paste from your message. انغسومان ، حاول مرة اخرى ، مع التأكد من لصق نسخة من رسالتك. I still get a “No input file specified” message. وما زلت احصل على "اي مدخلات الملف المحدد" رسالة. I’m waiting a while now, to see if this is some sort of database or configuration issue that needs some time to set itself. انا في انتظار بعض الوقت الآن ، لنرى ما اذا كان هذا هو نوع من إعداد قاعدة البيانات او ان المساله تحتاج الى بعض الوقت لتحدد لنفسها.
For example, this is how one of my post links looks like now: فعلى سبيل المثال ، وهذه هي الطريقة واحدة من منصبي وصلات يبدو الآن :
http://www.carlanga.com/blog/index.php/archive/using-crypto-hashes-salts-to-protect-database-privacy/ http://www.carlanga.com/blog/index.php/archive/using-crypto-hashes-salts-to-protect-database-privacy/
Does that look ok to you? هل ان ننظر الى طيب؟
Thanks! شكرا!
April 18th, 2005 at 6:06 am نيسان / ابريل 18th ، 2005 في الساعة 6:06
Waited a while… added a post… no luck. وانتظر بعض الوقت… وأضاف بعد… لا حظ. It doens’t seem like this will work on non-Apache boxes. Doens't انه يبدو مثل هذا سوف تعمل على عدم صناديق اباتشي.
April 19th, 2005 at 2:09 am نيسان / ابريل 19th ، 2005 في الساعة 2:09
@Carlos I will check it out. @ كارلوس الاول وسوف تحقق منها. It should be possible as it is using something very basic. ينبغي ان يكون من الممكن استخدام كما هو شيء اساسي جدا.
The reason I don’t have IIS, even on my home machine, is due to security concerns. والسبب ليس لدي IIS ، بل وعلى آله بيتي ، هو لاسباب امنية.
BTW: Have you faced aany security related issue with your IIS deployment? راجع للشغل : هل تواجه aany الامن مسألة ذات صلة مع IIS النشر الخاصة بك؟
April 19th, 2005 at 2:17 pm نيسان / ابريل 19th ، 2005 في 2:17 مساء
@angsuman, @ انغسومان ،
Not that I know of, as Brinkster handles all the hosting (shared hosting). لا اعرف ان لل، كما يعالج كل brinkster الاستضافه (استضافة مشتركة). They should keep all patches up to date, etc. But I haven’t had any problems so far in the 3 or 4 years I’ve been with them. وينبغي ان تبقى جميع البقع حتى الآن ، الخ ولكنني لم يكن لها أي مشاكل حتى الان في 3 او 4 سنوات انا كنت معهم.
Just now I noticed they offered PHP/MySQL support and thus installed Wordpress. الان فقط لاحظت انها عرضت بي. اتش. بى / الخلية ، وبالتالي دعم تركيب WordPress. I was using Radio Userland, via FTP, before. الاول هو استخدام الاذاعة userland ، عن طريق بروتوكول نقل الملفات ، من قبل.
April 22nd, 2005 at 5:34 pm نيسان / ابريل 22nd ، 2005 في الساعة 5:34
My server runs Win2000/IIS5 and no problem with “index.php” permalinks. خادم بلدي يدير win2000/iis5 ولا مشكلة مع "index.php" permalinks. Perhaps this is specifically a Windows 2003 or IIS6 problem? ربما كان هذا هو على وجه التحديد عام 2003 او ويندوز iis6 المشكلة؟
I run Apache2 on the same server and that’s where all the WP1.5 installs are. Apache2 انشءها على نفس الخادم وحيث ان للجميع هي تثبيت wp1.5. Permalink structure is defaulted to /%year%/%month%/%postname%/ for clarity. الهيكل الدائم المتعثره ل/ ٪ ٪ سنة / شهر ٪ ٪ / ٪ postname ٪ / من اجل الوضوح.
April 24th, 2005 at 1:25 am نيسان / ابريل 24th ، 2005 في الساعة 6:05
@rust, @ الصدأ ،
Do you have your Wordpress installation running on IIS5 or on the Apache server you have on the same machine? هل لديك WordPress تركيب بالظهور على iis5 او على الخادم اباتشي لديك على نفس الجهاز؟
April 25th, 2005 at 10:33 am نيسان / ابريل 25th ، 2005 في 10:33 صباحا
Just chiming in, but Carlos, any chance you have your index.php in a nonstandard location? فقط في الدق ، ولكن كارلوس ، اي فرصة لديك غير قياسي index.php في الموقع؟ Maybe the link that’s supposed to be pointing at your index file really isn’t? وربما ربط هذا يفترض ان تكون الاشارة في الملف الخاص بك الرقم القياسي ليست حقا؟
If that doesn’t seem to be the issue and you’re not using a default theme, you might try switching back to classic or kubrik. اذا كان ذلك لا يبدو ان هذه المساله وأنت لا تستخدم الافتراضي الموضوع ، قد تجد محاولة التبديل العودة الى الكلاسيكيه او kubrik. It’s *possible* that whatever theme you’re using doesn’t link to the code that parses the URL string aside from the standard GET stuff. انها * * ممكن ان كل ما كنت تستخدم موضوع لا صلة لهذا القانون ان يعرب عنوان الموقع الخيط وبصرف النظر عن مستوى الحصول على مادة خام. Admittedly, I’ve not actually gone spelunking to find the code that’s supposed to be doing that parsing. ومن المسلم به ، أنا فعلا ذهبت استكشاف الكهوف وليس لايجاد هذا القانون يفترض ان يكون تحليل للقيام بذلك.
April 25th, 2005 at 3:49 pm نيسان / ابريل 25th ، 2005 في الساعة 3:49
Thanks Squeg. وبفضل squeg.
I’m running the default theme… let me check if location has anything to do with this. انا ادارة الافتراضي الموضوع… واسمحوا لي ان معرفة ما اذا كان المكان لا شأن لهذا. I have everything installed in a folder (www.carlanga.com/blog) but otherwise, it’s just as it came in the original file. لقد ركبت كل شيء في مجلد (www.carlanga.com / بلوق) ولكن على خلاف ذلك ، فهو تماما كما جاء في الملف الاصلي. I unzipped and FTP’d. انا unzipped وftp'd.
Thanks. شكرا.
April 26th, 2005 at 10:17 am نيسان / ابريل 26th ، 2005 في الساعة 10:17
Well that sounds like a pretty standard configuration. بالاضافة الى ان الامر يبدو مثل جميلة التكوين القياسيه. Double-check the options screen in your dashboard to make sure that both location boxes point at the correct location. تأكد من الخيارات الموجود في لوحة الشاشه للتأكد من ان كل نقطة في مكان صناديق المكان الصحيح. You might (and i’m totally just shotgunning here) try setting the blog address to كنت قد (وإنا للتو shotgunning تماما هنا) محاولة وضع معالجة لبلوق http://www.carlanga.com/blog/index.php instead of just /blog. بدلا من مجرد / بلوق.
Aside from that, I’d say it’s going to come down to server configuration. ما عدا ذلك ، انا اقول انه سوف يأتي نزولا الى مركز خدمة. It’s possible the web server itself is choking on the oddly-formed URL. فمن الممكن ملقم الويب في حد ذاته هو الخنق على بغرابه - شكلت عنوان. And at that point, I don’t really have a lot of good ideas. وعند هذه النقطه ، انا لا حقا لدينا الكثير من الافكار الجيدة. Honestly, what’s really wrong with “ugly” url’s anyway? وبصراحة ، ما هو فعلا خطأ "القبيح" للموقع على أية حال؟
April 26th, 2005 at 8:45 pm نيسان / ابريل 26th ، 2005 في 8:45 مساء
@Squeg @ Squeg
> what’s really wrong with “ugly” url’s anyway? > ما هو خطأ حقا "القبيح" للموقع على أية حال؟
?p=3756 type of url’s don’t get much google-love (not to mention they are ugly) ؟ ف = 3756 موقع من النوع الذي لا يحصل الكثير من الحب - صور (ناهيك عن انها قبيحة)
April 28th, 2005 at 2:42 pm نيسان / ابريل 28th ، 2005 في الساعة 2:42
So, has anyone gotten this to work under IIS? بذلك ، وقد بدأت هذه أي شخص على العمل في ظل IIS؟
April 29th, 2005 at 5:12 am نيسان / ابريل 29th ، 2005 في الساعة 5:12
Not me, not yet. ليس لي ، ليس بعد.
April 30th, 2005 at 7:01 am نيسان / ابريل 30th ، 2005 في الساعة 7:01
Okay, last resort, you could try and get rewrites to actually work in IIS using something like this: حسنا ، الملاذ الاخير ، قد تتمكن من محاولة لاعادة كتابة والحصول على العمل فعلا في استخدام IIS شيئا مثل هذا :
http://www.isapirewrite.com/
The lite version is free and might be enough for what you’re trying to do. وقد Lite الاصدار مجاني ويمكن ان يكون كافيا لماذا انت تحاول ان تفعل.
April 30th, 2005 at 7:15 am نيسان / ابريل 30th ، 2005 في 7:15 صباحا
Here’s another possible option (free) ها هي اخر خيار ممكن (مجانا)
http://www.motobit.com/help/url-replacer-rewriter/iis-mod-rewrite.asp
May 1st, 2005 at 2:43 pm اول ايار / مايو ، 2005 في الساعة 2:43
Thanks Squeg. وبفضل squeg.
Carlos, did you have any luck with these solutions? كارلوس ، هل لديك أي حظ مع هذه الحلول؟
May 4th, 2005 at 2:55 am الرابع من ايار / مايو ، 2005 في الساعة 2:55
From what I see, I don’t think I could get either of those to work, as I’m on a hosted server. من الذي اراه ، ولا اعتقد انني يمكن ان أحصل على اي من هؤلاء إلى العمل ، كما انا على خدمات تستضيفه. I’ll look closer at Isapirewrite and comment if anything good comes up. انا اوثق في البحث والتعليق isapirewrite اذا كان هناك من شيء جيد وردت.
Thanks! شكرا!
May 4th, 2005 at 5:16 am الرابع من ايار / مايو ، 2005 في الساعة 5:16
How about changing your hosting provider ماذا عن تغيير الخاص بك استضافه مقدم
I found Linux hosting providers are normally cheaper and comes with addl. لقد وجدت لينكس مضيفيه عادة ارخص ويأتي مع addl. capabilities like ssh, vps (some) etc. القدرات مثل ssh ، VPS (بعض) ، الخ.
May 4th, 2005 at 3:04 pm الرابع من ايار / مايو ، 2005 في الساعة 3:04
I thought about that… but then my hosting provider offered me a nice plan with PHP that was competitive with everything else out there and I decided the hassle of switching wasn’t worth it. لقد فكرت ان بلادي… ولكن بعد ذلك عرضت استضافة مقدم لي مع نيس خطة بي. اتش. بى ان التنافس مع كل شيء آخر الى هناك وقد قررت انا والازعاج من التبديل لم يكن يستحق ذلك. I’d have to move all my data plus my email domain. كنت قد لنقل كل البيانات بالاضافة الى بلادي بلادي مجال البريد الالكتروني.
They are about to start offering Linux hosting, so maybe all is not lost. وهي على وشك ان يبدأ عرض استضافة لينكس ، ولذلك ربما لم نفقد كل شيء.
May 9th, 2005 at 5:52 pm التاسع من ايار / مايو ، 2005 في الساعة 5:52
I have tried to search the site for the reason for using index.php as part of the permalink structure. لقد حاولت ان ابحث في الموقع للسبب لاستخدام index.php كجزء من الهيكل الدائم. And of course it is hard to search for that since it is included on every page وبطبيعة الحال ومن الصعب للبحث عن ذلك بما انه يدخل في كل صفحة
May 9th, 2005 at 11:27 pm التاسع من ايار / مايو ، 2005 في الساعة 11:27
@Gary @ غاري
Finally a downside of using “index.php” as part of permalink واخيرا أ السلبي للاستخدام "index.php" كجزء من الدائم
Looks like however you succeeded. ولكن يبدوا ان كنت نجحت.
May 10th, 2005 at 1:17 pm العاشر من ايار / مايو ، 2005 في الساعة 1:17
Well, you won me over to the NoDateURI side. حسنا ، أنت لي ان فاز على مدى nodateuri الى جنب. Being a noob with php, apache, etc, I was reluctant to do anything that might ‘break’ my site. Noob مع كونه بي. اتش. بى ، اباتشي ، وما الى ذلك ، وكنت تتردد في القيام باي شيء يمكن ان 'كسر' موقعي. But I backed up everything (including a spare copy of .htaccess) and said - go for it. ولكنني تدعمه كل شيء (بما في نسخة احتياطية لل. Htaccess) ، وقال -- الذهاب ل.
It worked!! وهي تعمل!
Then I realized all the links out in the wild world to my site were now probably broken. ثم ادركت جميع الصلات البرية في العالم الى موقعي الآن وربما كانت مكسوره. And even though I like my 404 message - I prefer people not get it. وعلى الرغم من اننى احب بلادي 404 رسالة -- انني افضل الناس لا يحصل عليها.
So, since I was being brave, I opened that back up copy of .htaccess and compared it with the new one. ذلك ، يجري منذ ان كنت شجاعا ، فتحت لي ان نسخة من نسخه احتياطية. Htaccess وبالمقارنة مع واحدة جديدة. I think I figured out how all the regular expressions were doing what they were supposed to do enought to try something bold. واعتقد انني حظيت باهتمام الى كيفية التعبير عن جميع العاديه تفعل ما كان يفترض ان تفعل شيئا لمحاولة enought جريئة. I copied the lines that started with ^([0-9]{4}) and replaced the pattern at the end: انا نسخت الخطوط التي بدأت مع و^ ([0-9] (4)) والاستعاضه عن نمط في النهاية :
`index.php?year=$1&monthnum=$2&day=$3&name=$4` `index.php؟ السنة = 1 دولار = monthnum & & 2 دولار في اليوم دولار = 3 & اسم دولار = 4`
with just: فقط :
index.php?name=$4` index.php؟ اسم دولار = 4 `
In other words I removed: وبعباره اخرى انا ازالتها :
`year=$1&monthnum=$2&day=$3&` `العام دولار = monthnum = 1 & 2 دولار في اليوم & & دولار = 3`
A quick test shows it worked - now the old links on my pingbacks, tracklogs, etc still should work. اختبار سريع وتبين انه يعمل -- التى اصبحت الآن قديمة وصلات على بلدي pingbacks ، tracklogs ، وما لا يزال ينبغي عمل. I emphasize ’should’ since I really have no clue about this stuff since I am an insurance agent and not a professional propeller head. واؤكد 'يجب ان' نظرا لأنني حقا لا فكرة عن هذه الاشياء وبما انني وكيل التأمين وليس رئيس المروحه المهنيه.
May 10th, 2005 at 1:56 pm العاشر من ايار / مايو ، 2005 في الساعة 1:56
WordPress Permalink Options WordPress الدائم خيارات
As I read 2 posts on the Simple Thoughts blog about permalinks in WordPress I realized I wanted my permalinks to be ‘cleaner’. كما قرأت على 2 وظيفة بسيطة عن الافكار permalinks في بلوق WordPress ادركت بلادي permalinks اردت ان تكون 'النظيف'.
In the first article, [Why I discourage embedding date in URL’s (including WordPress Permalinks and also other CMS)](htt… في المادة الاولى ، [لماذا انا حتى الآن في ثني ترسيخ موقع) بما WordPress permalinks وايضا اتفاقيه الانواع المهاجره الاخرى)] (… htt
May 25th, 2005 at 10:16 am ايار / مايو 25th ، 2005 في الساعة 10:40
[...] permalinks. [...]Permalinks. At the very least, include the post name. وعلى أقل تقدير ، وتشمل مرحلة ما بعد الاسم. Another recommendation can be found here. وهناك توصية اخرى ويمكن الاطلاع هنا. 05.25.2005 @ 10:15 AM by paul @ rwt [...] 05.25.2005 @ 10:15 صباحا بول @ rwt [...]
June 1st, 2005 at 10:56 am يونيو 1st ، 2005 في الساعة 10:56
Carlos: كارلوس :
I have just set up WP on Win2k3/IIS6, and was pleasantly surprised to find no problems with permalinks. لقد تأسيسها لأول مرة على win2k3/iis6 رزمه العمل ، وكان مفاجاه سارة لايجاد اي مشاكل مع permalinks. I have not installed any of the rewrite ISAPI filters. انني لم تركيب اي من المرشحات اعادة كتابة isapi. This site is for internal organizational use only, so is not accessable to the public — you’ll have to trust me that permalinks are working! هذا الموقع هو لاستخدام تنظيمية داخلية فقط ، لذا ليست متاحة للجمهور ل-- ستسنح لك على الثقة permalinks لي ان تعمل!
My guess is that you don’t have access to the php.ini file (I wouldn’t give access to all users if I was the host!) ان بلدي هو تخمين لا يمكنك الوصول الى ملف php.ini (انا لن يعطي امكانيه الوصول الى جميع المستخدمين اذا كنت المضيف!)
If I’m right, ask your host to turn on the cgi.fix_pathinfo option for PHP. إذا أنا الحق ، اسأل المضيفه لتحويل cgi.fix_pathinfo على الخيار لبي. اتش. بى. Even if they make the change in php.ini, it requires a restart of IIS to take effect, so they may not be able to do that immediately. حتى لو كانت تجعل التغيير في php.ini ، فهي تتطلب اعادة تشغيل IIS من ان يبدأ سريانه ، ولذلك قد لا تكون قادرة على ان تفعل ذلك فورا.
If you begin hosting on your own server, and need to use IIS instead of Apache for some reason, try the suggestion on the WordPress Codex: اذا كنت ابدا على استضافة الخادم الخاص بك ، والحاجة الى استخدام IIS بدلا من اباتشي لسبب من الاسباب ، حاول الاقتراح على WordPress الدستور : http://codex.wordpress.org/User:ringmaster/IIS http://codex.wordpress.org/user:ringmaster/iis
Hope that helps. على امل ان يساعد.
June 8th, 2005 at 10:13 pm في الثامن من يونيو 2005 فى الساعة 10:13
Well, this discussion make me, a newbie in WP, confused. وأيضا ، تجعلني هذه المناقشه ، مبتدئ في رزمه العمل ، والخلط. What should I choose? ما يجب على اختيارها؟
June 8th, 2005 at 11:43 pm في الثامن من يونيو 2005 فى الساعة 11:43
Choose the simple structure I suggested in the article. اختيار هيكل كان بسيطا انا اقترح في هذه المادة. It will take you about a minute to setup, very search engine friendly and requires no special capability of your server like mod_rewrite or htaccess. وسوف تتخذ لكم عن الإعداد لمدة دقيقة ، محرك بحث ودية جدا ولا يحتاج الى قدرة خاصة للالملقم مثل mod_rewrite او htaccess.
I summarized in the last line of the article: خصت في السطر الاخير من المقال :
Simply said this approach is without any drawbacks AFAIK. ببساطة : قال هذا النهج دون اي عوائق afaik.
June 19th, 2005 at 9:40 pm يونيو 19th ، 2005 في الساعة 9:40
For future reference, I was able to get permalink URL rewriting working in WordPress by creating a php.ini at my domain root with the following configuration: للرجوع اليها في المستقبل ، كنت قادرا على الحصول على العنوان الدائم في اعادة صياغه العمل من خلال تهيئة WordPress php.ini في نطاقي الجذر مع التكوين التالية :
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
June 20th, 2005 at 4:32 pm يونيو 20th ، 2005 في الساعة 4:32
I have posted this query at WP Forum but received no response. وقد نشر هذا الاستفسار في منتدى رزمه العمل لكنها لم تتلق ردا.
Server: Linux/Apache الخادم : لينكس وأباتشي
WP: 1.5.1 رزمه العمل : 1.5.1
Themes: both my own and wordpress default. المواضيع : كل من بلدي وWordPress الافتراضي.
Plugins: ملحقات :
Include page 1.0 وتشمل الصفحه 1،0
Last Post Since 1.0 كان آخر منصب منذ 1،0
Static Front Page 1.0.2 الصفحه الأولى ساكنة 1.0.2
I have edited my Permalink structure as: لقد حررت بلدي الدائم الهيكل على النحو التالي :
/%year%/%monthnum%/%day%/%postname%/ / ٪ ٪ سنة / ٪ monthnum ٪ / ٪ ٪ اليوم / ٪ postname ٪ /
/category/%postname%/ / الفئة / ٪ postname ٪ /
The links seems to be working fine but I get the following error at every post or category: الروابط ويبدو أن تعمل جيدا ولكن إحصل على الخطأ التالية او ما بعد في كل فئة :
WordPress database error: [You have an error in your SQL syntax. WordPress قاعدة البيانات الخطأ : [عليك خطأ في تركيب لغة الاستعلامات البنيويه الخاصة بك. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] دليل للتحقق من ان يقابل خادم النسخه الخاصة بك الخلية من اجل الحق في استعمال لغوي القريب ''في السطر 1]
SELECT category_nicename FROM wp_categories WHERE cat_ID= اختر category_nicename من wp_categories حيث cat_id =
Then to make it simple I used: ثم لجعلها بسيطة كنت :
/index.php/%year%/%postname%/ / index.php / السنة ٪ ٪ / ٪ postname ٪ /
/index.php/archives/%post_id% / index.php / المحفوظات / ٪ ٪ post_id
without .htaccess دون. htaccess
Same result. نفس النتيجة.
Any idea? اي فكرة؟
June 20th, 2005 at 5:39 pm يونيو 20th ، 2005 في الساعة 5:39
Look like a plugin related problem or related to the theme. تبدو وكأن البرنامج المساعد او مشكلة ذات صلة تتعلق بهذا الموضوع. Start by disabling all the plugins and see of the problem is solved. أبدا تعطيل جميع ملحقات وانظر للمشكلة هو حلها. Then activate them one at a time to isolate the exact plugin causing it. ثم تفعيل واحد منهم في وقت لعزل الدقيق مما تسبب في البرنامج المساعد.
To test the theme try using the default theme and see if that solves the problem. موضوع لاختبار جرب استخدام الافتراضي الموضوع ونرى ما اذا كان ذلك يحل المشكلة.
This is not related to the permalink structure as far as I can tell from this description. وهذه ليست ذات الصلة الى الهيكل الدائم بقدر ما استطيع أن أقول من هذا الوصف.
June 20th, 2005 at 10:51 pm يونيو 20th ، 2005 في الساعة 10:51
Angsuman thanks for your response. انغسومان شكرا لردكم. The error shows up despite the theme or the plugin used. يظهر هذا الخطأ على الرغم من موضوع او استخدام البرنامج المساعد. I have tested and got the same error using the WP default theme and without plugins. لقد اختبرت وحصلت على نفس الخطأ باستخدام التقصير رزمه العمل الموضوع وبدون ملحقات. Weird isn’t? غربة لا؟
My server provider says the system is okay but I have no arguments to discuss the database error. مزود خدمة بلدي يقول النظام حسنا ولكن ليس لدي اي حجج للبحث في قاعدة البيانات الخطأ. So, it would be great if someone explains what the error message means. ذلك ، سيكون كبيرا اذا كان هناك من يفسر ما يعني رسالة الخطأ.
June 21st, 2005 at 12:19 am يونيو 21st ، 2005 في الساعة 12:19
@Stopthepress Check the version of MySQL installed on your site. @ Stopthepress التحقق من نسخة من تركيب الخلية على موقعك. You should be able to find it in the control panel or your hosting provider will be able to tell you. هل ينبغي أن تكون قادرة على العثور عليه في لوحة التحكم الخاصة بك او موفر استضافة سوف تكون قادرة على ان اقول لكم.
AFAIK WordPress doesn’t support MySQL 5.x versions. Afaik WordPress لا يدعم الاصدارات 5.x الخلية. It works with 4.x versions. وهي تعمل مع 4.x النسخ.
June 21st, 2005 at 12:15 pm يونيو 21st ، 2005 فى الساعة 12:15 بعد الظهر
Angsuman, انغسومان ،
MySQL version is 4.0.22-standard الخلية النسخه القياسيه 4.0.22 -
June 21st, 2005 at 12:46 pm يونيو 21st ، 2005 في الساعة 12:47
This is not linked to permalinks at all. وهذه ليست مرتبطة permalinks على الاطلاق. Comment out references to the_category() function everywhere in your theme. التعليق بها اشارات الى the_category () وظيفة في كل مكان في الموضوع الخاص بك.
Then your site will work. بعد ذلك سوف يعمل موقعك.
However it shouldn’t have been a problem in the first place. بيد انه ما كان ينبغي ان المشكلة في المقام الأول. Search/Ask in WP forum if your version of MySQL is supported. بحث / رزمه العمل في منتدى اسأل اذا كان الاصدار الخاص بك من الخلية ويدعم.
Re-instllating often helps with such spurious errors. اعادة instllating يساعد في كثير من الاحيان مع زاءفه مثل هذه الاخطاء. That is an option too. وهذا هو خيار ايضا.
June 21st, 2005 at 10:44 pm يونيو 21st ، 2005 في الساعة 10:44
Done!!! القيام به!
Deleting the ‘the_category()’ function at the theme’s index.php solved the problem. حذف 'the_category ()' وظيفة في موضوع 'sindex.php حل المشكلة. Fortunately the ‘the_category()’ function is not so important. ولحسن الحظ 'the_category ()' وظيفة ليست في غاية الاهميه.
The question is why the_category() function caused that weird behaviour in my theme and in the WP Default theme as well? والسؤال هو لماذا the_category () العجيب المهمة التي تسببت في السلوك وموضوعي في موضوع التقصير رزمه العمل أيضا؟ Hmmm if I get some spare time I will re-install to see what happen. Hmmm اذا كان لي ان احصل على بعض وقت الفراغ وسوف اعادة تثبيت لنرى ما يحدث.
Thanks a lot Angsuman for your valuable comments. شكرا جزيلا لانغسومان الملاحظات القيمه الخاصة بك. Will post a link to this thread at the WP Forum in order to help other users suffering “Permalinkcitis”. وسوف ما بعد وصله الى هذا الخيط في المنتدى رزمه العمل من اجل مساعدة المستخدمين الآخرين من المعاناة "permalinkcitis".
July 1st, 2005 at 10:33 am أول يوليو عام 2005 فى 10:33 صباحا
Genius here: عبقريه هنا :
I already gave up de permalink-stuff, but today i upgraded wp to 1.5.1.3 . سبق لي ان تخلي دي الدائم بين الأشياء ، ولكن اليوم الاول رزمه العمل على رفع مستوى 1.5.1.3.
I thought lets give it a try. كنت أعتقد أنه يتيح اعطاء اي محاولة.
I followed Cems advice and voila it is working! تابعت cems المشوره وفويلا وهي تعمل!
without the .htacces, because i don’t have that file in my (shared) webspace. دون. htacces ، لأن ليس لدى هذا الملف في بلادي (مشترك) webspace.
Big thanks to Cem. كبير بفضل سيم.
July 8th, 2005 at 11:46 pm يوليو 8th ، 2005 في الساعة 11:46
Just wanted to add my 2 cents, the trick Cem said seemed to work for me. اردت فقط ان اضيف بلدي 2 سنتا ، والحيله وقال شيم ويبدو ان العمل بالنسبة لي. Specifically: على وجه التحديد :
Running Win2k3 on IIS6 and now it works perfectly fine. Win2k3 على تشغيل وiis6 وهي تعمل الآن على اكمل وجه الغرامه. Thanx a bunch. Thanx مجموعة أ.
July 11th, 2005 at 3:08 pm تموز / يوليه الحاديه عشرة ، 2005 في الساعة 3:08
I didn’t believe it would work, but like CEM (comment #44) and others said, this did the trick for me on Win2003 and IIS. لم أكن اعتقد انه سيكون العمل ، ولكن مثل جيم (التعليق # 44) وقال البعض الآخر ، وهذا لم الحيله بالنسبة لي على win2003 وIIS.
August 2nd, 2005 at 12:22 pm اب / اغسطس 2nd ، 2005 في الساعة 12:22
Thank you so much! شكرا جزيلا! I’ve been looking around forever for a solution to the IIS/Wordpress/Permalinks problem, and the php.ini thing worked! انا ابحث حول الى الابد لايجاد حل لIIS / WordPress / permalinks المشكلة ، وعملت php.ini شيء! I’m so happy, thank you all so much. انا سعيدة جدا ، شكرا لكم جميعا الكثير.
August 9th, 2005 at 5:41 pm التاسع من اب / أغسطس ، 2005 في الساعة 5:41
thanks, the tip about php.ini on iis saved me from tearing any more hair out. شكرا ، نصيحه عن php.ini على IIS انقذ لي اكثر من اي تمزيق الشعر.
October 8th, 2005 at 11:33 pm في الثامن تشرين الاول / اكتوبر 2005 فى الساعة 11.33
[...] Wordpress is sooooooo cool. [...]WordPress sooooooo هو بارد. Just changed the url’s to be “search engine friendly.” I was researching how to do this manually, but then ran across a link from one of Wordpress’ support pages, which mentioned to change the options in the local Wordpress install’s permalinks section, add some code to the .htaccess file, and that was it! مجرد تغيير عنوان الموقع الذي يجب ان "محرك بحث ودية." كنت وبحث كيفية القيام بذلك يدويا ، ولكن بعد ذلك يتعارض عبر وصلة من احد WordPress 'صفحات الدعم ، الذى ذكر لتغيير الخيارات المحلية في تثبيت's WordPress permalinks القسم ، اضافة الى بعض المدونه. htaccess الملف ، وهذا هو! How easy. مدى سهولة. I’ll probably donate some money to them soon. انا ربما تبرع بعض المال لها في وقت قريب. They’ve built a fantastic tool. لقد بنى انها اداة راءعه. [...]
October 20th, 2005 at 7:46 pm تشرين الاول / اكتوبر 20th ، 2005 في الساعة 7:46
OMG HOLY 5H17 Omg المقدسة 5h17
CEM, you rule شيم لكم القاعده
Thank you, I spent a couple days looking for this work around (came across this post more than once, just was too lazy to read the comments before اشكركم ، وقضيت يومين من البحث عن هذا العمل حوالي (صادف هذا المنصب اكثر من مرة ، كان مجرد كسلان جدا لقراءة التعليقات قبل
) (
u guys rock ش رجال الصخرة
October 20th, 2005 at 8:05 pm تشرين الاول / اكتوبر 20th ، 2005 في الساعة 8:05
has anyone noticed their admin console stop doing page redirects after executing actions since they installed the php.ini file to fix permalink? وقد لاحظ كل من المشرف على الصفحه يعيد توجيه وقف العمل بعد تنفيذ الاجراءات لأنها تركيب ملف php.ini لتصحيح الدائم؟
I imagne it’s just something I’m missing from my php.ini… but I don’t know what to put in there انا imagne انها مجرد شيء انا php.ini المفقودين من بلدي… ولكن لا اعرف لماذا وضع هناك
this happened to anyone else? وهو ما حدث الى اي شخص آخر؟
October 26th, 2005 at 7:18 am تشرين الاول / اكتوبر 26th ، 2005 في الساعة 7:18
Hi اهلا
maybe it’sa good tip to know that when you use other seperation characters like: . ربما it'sa نصيحه جيدة ان تعرف انه عندما كنت تستخدم حرفا اخرى مثل فصل :. , | + instead of the / or - you can get serious errors ، | + بدلا من / أو -- يمكنك الحصول على اخطاء جسيمة
so: /%year%.%monthnum%.%day%.%postname%.%post_id% حتى : / ٪ ٪ في السنة. monthnum ٪ ٪ ٪ ٪ اليوم. postname ٪ ٪ ٪ ٪ post_id
does not work, but لا يعمل ، ولكن
/%year%-%monthnum%-%day%-%postname%-%post_id% / ٪ ٪ في السنة -- ٪ monthnum ٪ -- ٪ ٪ اليوم -- ٪ postname ٪ -- ٪ ٪ post_id
does… هل…
October 31st, 2005 at 9:29 pm تشرين الاول / اكتوبر 31st ، 2005 في الساعة 9:29
It worked! وهي تعمل! Thanks, really! شكرا ، حقا!
November 9th, 2005 at 3:30 am التاسع من تشرين الثاني / نوفمبر ، 2005 في 3:30 صباحا
Using the structure you suggested solved all my problems of no comments showing and categories not working. باستخدام هيكل لكم اقترح حل جميع مشاكل بلدي لا تظهر التعليقات وفئات لا تعمل. I don’t really know php and am new to this kind of blogging, but I’m so relieved and so thankful I could dance! انا لا أعرف حقا بي. اتش. بى ، وانا جديدة على هذا النوع من المدونات ، ولكن انا مرتاح والشكر حتى استطيع الرقص!
Thanks from Italy وبفضل من ايطاليا
November 24th, 2005 at 1:50 am تشرين الثاني / نوفمبر 24th ، 2005 في الساعة 1:50
I suggest using the default structure: /index.php/%year%/%monthnum%/%day%/%postname%/ because this is computable with the other archive URL. واقترح استخدام الافتراضي هيكل : / index.php / السنة ٪ ٪ / ٪ monthnum ٪ / ٪ ٪ اليوم / ٪ postname ٪ / لان هذا هو computable مع غيرها من ارشيف موقع. For example /index.php/%year%/%monthnum%/ shows all posts in that month and /index.php/%year%/ shows all posts in that year. فعلى سبيل المثال / index.php / السنة ٪ ٪ / ٪ monthnum ٪ / ويبين جميع الوظائف في ذلك الشهر و/ index.php / ٪ ٪ سنة / يبين جميع الوظائف في تلك السنة. /index.php/%year%/%monthnum%/%day%/%postname%/ seams like the logical extension to me. / index.php / السنة ٪ ٪ / ٪ monthnum ٪ / ٪ ٪ اليوم / ٪ postname ٪ / اللحامات مثل امتدادا منطقيا لي.
November 27th, 2005 at 10:16 pm تشرين الثاني / نوفمبر 27th ، 2005 في الساعة 10:40
Any suggestions for fixing this when the Windows web host provider won’t modify php.ini with the fix above? أية اقتراحات لتحديد هذا عندما تستضيف شبكة مزود ويندوز لن تعديل php.ini مع فيكس اعلاه؟ WebHost4Life can’t/won’t make the change, and it doesn’t look like they’ll install the ISAPI filters referred to above, either. لا يمكن ان webhost4life / لن يجعل التغيير ، وأنها لا تبدو انها سوف isapi تركيب الفلاتر المشار اليها اعلاه ، اما.
November 27th, 2005 at 11:41 pm تشرين الثاني / نوفمبر 27th ، 2005 في الساعة 11:41
How about uploading the file php.ini to your home directory yourself instead of relying on your web host? ماذا عن تحميل الملف php.ini لمنزلك دليل نفسك بدلا من الاعتماد على استضافة الويب الخاص بك؟
December 3rd, 2005 at 12:47 am كانون الاول / ديسمبر 3rd ، 2005 في الساعة 12:47
[...] You can also try to follow blog.taragana.com by putting a php.ini file in your root folder. [...]يمكنك ايضا محاولة لمتابعة blog.taragana.com أ php.ini عن طريق وضع الملف في مجلد الجذر الخاص بك. Have a look at their update 3 it may be of some help. وقد اطلع على آخر التطورات / 3 على انه قد يكون من بعض المساعدة. [...]
December 8th, 2005 at 10:38 pm كانون الاول / ديسمبر 8th ، 2005 في الساعة 10:38
I am attempting to get /archive/%postname%/ to work without having to write to WP’s .htaccess, but ran into a few problems. انا محاولة للحصول على / ارشيف / ٪ postname ٪ / للعمل دون الحاجة الى الكتابة الى رزمه العمل لل. Htaccess ، ولكن واجهت بعض المشاكل. Allowing wp to write the code to WP’s .htaccess file overrides my RewriteEngine canonical redirect in my domain root .htaccess, that automatically parses all non-www versions of my domain to the www version to avoid possible duplicate content penalties. رزمه العمل السماح لكتابه الى رزمه العمل للقانون. Htaccess الملف يتجاوز بلدي rewriteengine اعادة توجيه الكنسي في نطاقي الجذر. Htaccess ، يعرب تلقائيا ان جميع المنظمات غير الشبكه العالمية للنسخ نطاقي على شبكة الاتصالات العالمية الى الصيغة الممكنة لتفادي تكرار مضمون العقوبات. This problem only effects my /blog/ folder. هذه المشكلة الا من آثار بلادي / بلوق / مجلد.
Adding php.ini to my domain root with: اضافة الى php.ini نطاقي مع الجذر :
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
Doesn’t work. لا يعمل. Changing /index.php/archive/%postname%/ to /archive/%postname%/ results in “Not found on server” errors for all my other blog pages. تغيير / index.php / ارشيف / ٪ postname ٪ / الى / ارشيف / ٪ postname ٪ / فى النتائج "لم يتم العثور على الملقم" بالنسبة لجميع الاخطاء الاخرى بلوق بلادي صفحة.
I tried adding a similar RewriteEngine code to WP’s .htaccess, but that didn’t work. حاولت اضافة الى قانون rewriteengine مماثلة للرزمه العمل. Htaccess ، ولكن ذلك لم ينجح.
December 31st, 2005 at 10:01 pm كانون الاول / ديسمبر 31st ، 2005 في الساعة 10:01
I think you would be better of including index.php in your path like this blog.
January 5th, 2006 at 8:34 am
I’ve got a wordpress site running on Win2K/IIS5 (it’s an internal demo @ work, so not a huge choice of operating system and server).
Yesterday i set up permalinking with the following structure (and the php.ini file) and it worked fine:
Structure: /index.php/%year%/%monthnum%/%day%/%postname%/
Category Base: /index.php
Today i’ve tried installing a plugin (wp-hashcash), and now i find that my structure doesn’t work and i get loads of 404 errors. However my categories do still work.
So I tried rolling back the only thing that had changed and uninstalled the plugin, but that doesn’t fix the problem.
Would be grateful for any ideas at all, i’m completely at a loss. I’m wondering if the act of installing the plugin has made some irrevocable change, but i can’t see how..
January 5th, 2006 at 9:42 am
Stephen,
As I mentioned in the post above please use the following structure:
I do not encourage embedding date information in permalinks and Google engineer Matt Cutts agrees with me.
Angsuman
January 14th, 2006 at 11:35 am
Hey everyone. So after wrestling with this for a long time (Window XP sp2, IIS 5.1, PHP latest, WP 2.0, MySql 5) I started digging to figure out why my permlinks weren’t working (after following all your good instructions).
I ran into this msft article: http://www.microsoft.com/technet/security/tools/urlscan.mspx
I installed the newer version of urlscan, and turned on the following line in the ini file:
AllowDotInPath=1 ; if 1, allow dots that are not file extensions
(the ini file is in : D:\WINDOWS\system32\inetsrv\urlscan on my machine)
Then refreshing works (be sure to re-install urlscan and restart iis or reboot in order to get it to see the new ini info).
I hope that helps those who are still stuck with windows + iis & permalinks.
Cheers,
Danny
February 19th, 2006 at 2:13 am
[...] Secara otomatis WordPress dapat me-generate file .htaccess namun ada semacam bug -mungkin- yang menyebabkan permalink tidak berjalan, dari hasil search sama mbah Google saya dapat bbrp petunjuk antara lain di Using_Permalinks, wordpress-tip-on-permalink-options, How to configure WordPress to create search engine friendly URLs for permalinks? akhirnya dari petunjuk yang ada saya menambahkan kode berikut pada file .htaccess # BEGIN WordPress [...]
March 5th, 2006 at 11:20 pm
Kewl blog you got goin on up here.
Peace, JiggyWittit
May 5th, 2006 at 6:11 pm
[...] Das halten wir mal schnell fest. In der Wordpress FAQ wird beschrieben wie man auch ohne mod_rewite permalink-ähnliche links in wp-erhält. Mehr dazu auch hier [...]
May 7th, 2006 at 3:06 pm
I have wordpress 1.5.2 installed on window. My attempt to create permalinks without mod_rewrite using a php.ini file worked. see my blog at: http://www.multiculturaladvantage.com/ diversity-recruiting/
However, my posts are striped of all style sheet information. See a sample post: http://www.multiculturaladvantage.com/ diversity-recruiting/ index.php/ archive/ test-shaker-receives-top-honors-for-excellence-in-recruitment-advertising/
I have limited prgramming knowledge and no idea what it means or how to correct it. Does anyone have ny ideas?
Thanks Tracey
May 8th, 2006 at 11:31 am
Check how you specified your CSS file. It should be absolute path and not relative path (as it is most likely now).
July 21st, 2006 at 8:07 pm
All I know is - this is the ONLY thing that has worked for me to change my permalinks from the default to pretty. I used my postname only.
Thank you, thank you! No amount of reading I was doing was working for me and I finally found a link here from WP codex.
July 22nd, 2006 at 4:38 pm
Wow thanks so much for this tip. It is incredibly simple and works great. Just had to make sure the php.ini file is in the domain root. I used the following custom structure: “/index.php/%year%/%monthnum%/%postname%/”, on a Windows IIS 6.0 acct on shared hosting. The only thing I’m worried about now is if WP or the PHP installation on my host gets upgraded and this stops working in the future… THANKS!
July 22nd, 2006 at 7:52 pm
It will continue to work.
July 27th, 2006 at 8:12 am
Christy & Parker,
I am happy that it worked for you. Feel free to spread the word in your blogs
– Angsuman
August 3rd, 2006 at 8:05 pm
[...] I got stuck at this point because the resources I was finding online indicated that to do this on IIS, I needed to muck around with ISAPI rewriting. I can’t do that in a shared hosting environment, so I was in limbo until I found this link through the WordPress Codex. [...]
August 24th, 2006 at 10:06 pm
I am glad that my suggestion was helpful.
August 30th, 2006 at 8:04 am
[...] I finally managed to change my permalinks structure…from downright ugly (ie. http://www.sooyin.com/?p=296578907243 ) to something more bearable. Thanks to this tip! [...]
August 31st, 2006 at 5:25 am
[...] [...]
August 31st, 2006 at 10:00 am
@Cem
Yes it was. Thanks.
September 4th, 2006 at 7:49 pm
[...] I’ve made a couple of other small changes to the site as well; The article and page links have been altered to a more aesthetically pleasing format using Angusman’s Advice posted here and I’ve added a link exchange section to the sidebar with a link to Matt’s Blog ‘Abort. Retry. Fail?‘. Matt is the author of the Article on how to remove the Sony Ericsson file manager I linked to in my last post and his stuff is well worth a read. [...]
September 11th, 2006 at 9:44 am
I still can’t get the friendly permalinks to work. I am on win 2003, IIS 6, PHP 5. I have a dedicated server.
I tried all tricks you saif here but it still printing “no input file specified”.
If anyone know how to get it to work, please let me know!
Thanks,
Stephane
September 12th, 2006 at 4:13 pm
Finally, I got it to work on IIS 6 and win 2k3 with this:
http://www.nathanm.com/2006/07/02/wordpress_permalinks_removing_indexphp_in_iis.html
The plugin is here:
http://www.nathanm.com/wordpress-plugins/
Stephane
October 14th, 2006 at 5:58 am
[...] This reference from Cem via http://blog.taragana.com/index.php/archive/wordpress-tip-on-permalink-options/ [...]
October 30th, 2006 at 2:43 am
[...] XDForum (example: Anaconda Forum) is a nice basic forum software which works seamlessly with WordPress blogs (download our free theme and plugins). Unfortunately it works out-of-the-box with default permalinks only. Most site today use nice permalinks. This mini-tutorial will teach you how to use XDForum with nice permalinks (how to enable; tips and more). [...]
December 18th, 2006 at 5:32 am
I am trying to get some sort of friendly article names to work on my site http://www.fancyacar.co.uk at the moment. I have already made the rewrite rules in .htaccess file but i cant find a way to deal with duplicate post titles. Maybe i could just append a number to the post like http://www.fancyacar.co.uk/hello-world and http://www.fancyacar.co.uk/hello-world-2 ?? ؟؟ This will ensure that no post titles are the same, wouldnt it? What do you guys think?
April 5th, 2007 at 10:23 am
Wordpress adds the number by default in URLs to duplicate post name
April 11th, 2007 at 5:21 am
I had started my blog with Default format and then changed to Date and Name based.
But now it is custom format %category%/%postname% which I think is good in terms of search engine.
Not very sure!!
May 29th, 2007 at 5:33 am
Thanks for this great info. I have changed the settings of my permalink and hopefully it will attract more search engine to come…
Thanks…
June 5th, 2007 at 1:42 am
Thanks for the information - very helpful when changing my permalink structure. A caution for beginners however: be careful about using %category% unless you are sure you will not change your categories, as doing so will break some of your permalinks. I wrote about this in my blog: http://www.scratch99.com/2007/06/wordpress-permalink-customisation-caution-for-beginners/
As you can see I no longer use category
July 17th, 2007 at 5:01 am
I prefer to have only postname after domain name.fellow webmasters like short urls to link to and i am as a visitor much fond of short urls.
July 25th, 2007 at 9:58 pm
I look at dates in the URL when reading search results to find articles that are most recent.
August 27th, 2007 at 12:18 pm
I used your advice a year ago when I first set up WordPress on our Compulabel site and everything worked fine. The categories of the blog worked with the extra php.ini files to my blog root folder.
However, recently my hosting company updated their version of PHP on the server from PHP5.1.1 to PHP5.2.3. The category pages no longer display properly.
If you visit a category in our blog, like…
Compulabel Labels you’ll see (as of this date), you’ll get an error message…
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
If tried everything, including uploading the entire latest version of Wordpress 2.2 and that hasn’t resolved the problem.
Does anyone have a solution to this problem, short of transferring our site to another server that has the older version of PHP software installed on it (which I don’t want to do)? Thanks
August 27th, 2007 at 1:56 pm
Try updating your permalinks in Options->Permalink
Then look at your .htaccess file to see if something is screwed up.
August 27th, 2007 at 1:57 pm
Also you can try creating a php.ini at my domain root with the following configuration:
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
August 29th, 2007 at 10:13 pm
Thanks for the feedback, but the PHP.ini is correct.
I forgot to mention that I have my version of Wordpress hosted on a shared hosting company and it runs on a Windows IIS. So I’m not able to access the .htaccess file.
I’ve tried UPDATING the permalinks files and some become corrected and others don’t.
It seems Wordpress add /category/ or /archive/ to some of the Permalinks and it’s not always the same. Especially for the PREVIOUS links when a page is too full.
Also, when you create a new CATEGORY, and add a post to it. And click on the new Category link, it doesn’t seem to find the category or the link.
Feel free to explore the blog at
Compulabel and you’ll see my frustration.
Do you think the PHP incompatibility issue could be the issue? It seems like a long-shot but that was upgraded right around the same time the perma links started going bad.
Any other suggestions would be appreciated.
Thanks
October 27th, 2007 at 6:58 am
Its workking…Great tip for wordpress and seo begineers…
November 26th, 2007 at 11:06 am
hi , Thanks i was fighting with this Ugly Permalink problem of my blog http://www.shankerbakshi.com . Thanks i got the solution here. Thanks again, you can’t imagine how happy i am to see permalink working on my blog
December 16th, 2007 at 6:46 am
Seconding Shanker Bakshi’s sentiments, I also was battling the permalink problem for about two evenings, on and off.. reloading probably 50 times, and slipping the php.ini code definitely saved my sanity, so thanks for making my day!
December 18th, 2007 at 12:57 pm
I DO NOT LIKE INDEX.PHP WUWUWUWU….
December 23rd, 2007 at 7:54 am
The new Wordpress has features built in to do that sort of stuff, what I find works well is /%postmonth%/%postname%.html , or similar
January 3rd, 2008 at 6:42 pm
Well, since everyone else seems to be sh!tting all over your post, I\’m going to go ahead and congratulate you, as it has helped me alot and I\’ve now got my blog working the way I want it. Thank you very much!
January 12th, 2008 at 6:19 pm
Thank you for this post! I have been really dragging my feet about changing my URL structure, I followed your directions here and it was almost too easy!
Thanks again
February 17th, 2008 at 3:50 am
Thank you. Very beatiful post.
February 27th, 2008 at 5:05 pm
Damn, good stuff… That helped and took me a while
February 29th, 2008 at 12:16 pm
Worked great - thanks so much! After several failed attempts with some plugins, this was the exact simple, effective fix we needed.
March 29th, 2008 at 11:29 pm
The PHP.ini trick stopped working with WordPress 2.5. Any suggestions?
April 13th, 2008 at 6:04 pm
Anyone home?
May 11th, 2008 at 2:40 pm
Awesome this worked for me. Thank you to people who share and respond.
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
in php.ini file.
Wordpress shuld detect this in their next version.!
May 21st, 2008 at 4:20 pm
Thanks, this worked out fine!
May 22nd, 2008 at 3:37 pm
Using WP v2.5 and it worked out fine…Keep up the good work!