How to fix .htaccess file for mod_rewrite and addhandler on godaddy subdomain كيفية اصلاح. Mod_rewrite لملف htaccess وaddhandler على نطاق فرعي godaddy
2,383 views - 2.383 آراء --Posted in: نشر في :
2,383 views 2.383 آراء
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.
I’m writing this article specifically for people hosted on godaddy that have had the following .htaccess, mod_rewrite or addhandler problems on shared or premium hosting accounts for various open source applications, such as (but not limited to) Wordpress, Drupal, BBPress, Moodle, Geeklog, PHPNuke, Postnuke, and more! أكتب هذه المادة على وجه التحديد على استضافتها للشعب godaddy التي كان لها اثر. Htaccess ، mod_rewrite او addhandler المشاكل المشتركة او على اقساط استضافة الحسابات المفتوحه المصدر لمختلف التطبيقات ، مثل (على سبيل المثال لا الحصر (الكلمات) دروبال ، bbpress ، موودل ، geeklog ، phpnuke ، postnuke ، وأكثر!
Short list of potential issues: قائمة قصيرة من القضايا المحتملة :
- problems with permalinks in Wordpress permalinks في مشاكل مع WordPress
- problems with clean URL’s in Drupal مشاكل مع موقع للالنظيفه في دروبال
- problems with pretty url’s in BBPress مشاكل مع موقع جميل للفي bbpress
- problems with Wordpress MU مشاكل مع مو WordPress
- ANY mod_rewrite problems in a sub-directory, subdomain, sub-folder, mapped domain, ie, a domain you setup in goDaddy’s Domain Management -> Assign Domain to Hosting Site feature Mod_rewrite اي مشاكل في دليل فرعي ، النطاق الفرعي ، المجلد الفرعي ، رسمها المجال ، أي مجال من مجالات لكم فى الاعداد للادارة النطاق godaddy --> تعيين الملك لاستضافة ميزة المواقع
I have struggled with two issues time and time again on a goDaddy shared or premium account. لقد ناضل مع اثنين من القضايا مرارا وتكرارا على قسط godaddy المشتركة او حساب. If I go into “Domain management -> Assign Domain” and “map” a domain to a folder of the root URL, I have problems with any site that needs to use an .htaccess file for “rewrite” the URL’s using a feature called “mod_rewrite” - especially Wordpress and Drupal. اذا ذهبت الى "ادارة النطاق --> تكليف الملك" و "خريطه" لحقل مجلد الجذر للموقع ، انا عندي مشاكل مع اي موقع يحتاج الى استخدام. Htaccess لملف "اعادة كتابة" عنوان الموقع للاستخدام ميزة تسمى "mod_rewrite" -- لا سيما WordPress ودروبال.
I came across a fix today that made all those problems go away forever. جئت عبر تحديد اليوم ان تقدم جميع هذه المشاكل تختفي الى الابد. To be able to do what I’m about to tell you, you must also be hosting your domain name with goDaddy . ان تكون قادرة على ان تفعل ما انا على وشك ان اقول لكم ، يجب عليك ايضا ان تستضيف اسم النطاق الخاص بك مع godaddy.
In your godaddy control panel, go to “Settings -> Domain Management”. Godaddy في لوحة التحكم الخاصة بك ، اذهب الى "اعدادات --> لادارة النطاق".
Click on “ Add New Record ” انقر على "اضافة سجل جديد"
In the very first line note the IP address of your “@” host, as you’ll by typing this into the box that comes up when you click to add a new record. في السطر الاول للغاية علما الملكيه الفكريه الخاصة بك عنوان "@" المضيفه ، كما انت بكتابة هذا الاطار الى ان يحين موعد عند النقر على اضافة فقرة جديدة في المحضر. In the first field type an asterik (*). في الخانه الاولى اي نوع asterik (*). In the second field type the IP address of your “@” host. في الحقل الثاني نوع من معالجة الملكيه الفكريه الخاصة بك "@" المضيفه. Leave the drop down at one hour. اسقاط ترك في ساعة واحدة. Click “ok” to save. انقر فوق "موافق" لانقاذ.
That’s it - you’re done! هذا هو -- انت القيام به! There should be no fiddling with your .htaccess files at all. يجب ان لا يكون هناك الغش الخاص بك. Htaccess ملفات على الاطلاق.
Once I applied that simple fix - everything worked again. اود ان يطبق مرة واحدة بسيطة فيكس -- كل شيء يعمل مرة اخرى.
I’ve also had problems when I’ve attempted to get .html or .htm files to parse PHP code as if they were .php files on goDaddy, or with applications that had to use PHP5. لقد قمت ايضا مشاكل عندما حاولت لقد قمت للحصول على. او لغة تأشير النص الفائق. Htm ملفات لتحليل شفره بي. اتش. بى كما لو كانت. Godaddy على ملفات بي. اتش. بى ، او مع التطبيقات التي تستخدم php5. That fix is also really, really easy. كما ان تحديد حقا ، حقا سهلة. All you have to do is create an .htaccess file with the following 2 lines: كل ما عليك القيام به هو خلق. Htaccess مع الملف 2 الخطوط التالية :
AddHandler x-httpd-php5 .php Addhandler x - httpd - php5. بى. اتش. بى
AddHandler x-httpd-php .php .htm html Addhandler x - httpd - بي. اتش. بى. بى. اتش. بى. Htm لغة تأشير النص الفائق
























January 24th, 2008 at 9:13 pm كانون الثاني / يناير 24th ، 2008 في الساعة 9:13
Thanks for figuring this out. شكرا لهذا الاعتقاد.
One suggestion, I believe you meant “Settings -> DNS Manager†instead of “Settings -> Domain Management†… كان احد الاقتراحات ، واعتقد انكم يعني â € œsettings --> دياناس managerâ بدلا من â € € œsettings --> النطاق managementâ €…
Otherwise, excellent information. وبخلاف ذلك ، المعلومات الممتازة.
Please edit (or delete) this comment after you edit you instructions. الرجاء تعديل (او حذف) هذا التعليق بعد الانتهاء من تحرير اليكم التعليمات.
Thanks again. الشكر مرة اخرى.
March 4th, 2008 at 4:27 am مارس 4th ، 2008 في الساعة 4:27
[...] Blogs [...]بلوق http://www.crazyleafdesign.com/blog/check-if-mod_rewrite-is-activated-on-your-server/ http://www.jtpratt.com/2008/01/22/how-to-fix-htaccess-file-for-mod_rewrite-and-addhandler-on-godaddy.. . http://pensae.com/2008/01/14/when-mod_rewrite-doesnt-work/ [...]
March 16th, 2008 at 12:34 pm مارس 16th ، 2008 في الساعة 12:34
I was wondering, what about build a niche store type sites? وكنت اتساءل ، ماذا عن بناء مواقع متخصصه نوع المتجر؟ Is there any way to put them on a subdomain without problems? هل هناك اي طريقة لوضعها على نطاق فرعي دون مشاكل؟
Pink Munoz’s last blog post.. الوردي munoz آخر بلوق بعد.. Depression Glass Patterns الاكتئاب أنماط الزجاج
March 16th, 2008 at 12:35 pm مارس 16th ، 2008 في الساعة 12:35
is there a way to get bans sites to work like this? هل هناك طريقة للحصول على مواقع لحظر مثل هذا العمل؟
erica Munoz’s last blog post.. ايريكا munoz آخر بلوق بعد.. Depression Glass Patterns الاكتئاب أنماط الزجاج
March 21st, 2008 at 3:09 pm مارس 21st ، 2008 في الساعة 3:09
When I did this I was able to get my BANS site to work… عندما قمت بذلك كنت قادرا على الحصول على بلدي الموقع لحظر العمل…
May 4th, 2008 at 8:52 pm الرابع من ايار / مايو ، 2008 في الساعة 8:52
WOW! واو! Thanks! شكرا! This worked for me with Wordpress! هذا بالنسبة لي عملت مع WordPress!
May 22nd, 2008 at 2:30 pm ايار / مايو 22nd ، 2008 فى الساعة 2:30 بعد الظهر
hi, أهلا ،
i tried this too, but it said the subdomain is not valid! حاولت وهذا ايضا ، ولكنها قالت ان نطاق فرعي غير صالحة! :( :)
any clue? اي فكرة؟