SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder سيو الودية طريقة اعادة كتابة عنوان موقع على التحرك من اجل القضاء على دليل فرعي من المجلد المحتوى
You have set up your site, blog such as WordPress, Drupal, LiveJournal, or content management system such as Joomba and Mambo nicely at URL link such as http://www.domain.com/mylovelysite, and get decent traffic to the web site. لديك انشاء موقعك ، بلوق مثل الكلمات دروبال ، LiveJournal ، او نظام ادارة المحتوى مثل joomba مامبو وودي في موقع وصلة مثل http://www.domain.com/mylovelysite ، وحركة المرور لائق للحصول على الشبكه العالمية الموقع. Now in the reorganization exercise, you decide to move the site from sub-directory to the parent folder, properly at site’s root location instead. الآن في اعادة تنظيم هذه العملية ، لكم ان تقرر الانتقال الى الموقع من دون دليل إلى المجلد المحتوي على الوجه الصحيح في الموقع الجذر الموقع بدلا من ذلك. Moving the site to another folder or root folder will break all links and backlinks referenced to your website. الانتقال الى موقع آخر مجلد او مجلد الجذر سوف كسر جميع وصلات وروابط خلفية الرجوع إلى موقع الويب الخاص بك. If these broken links are not handled and redirected properly, there will be a lot of 404 page not found error, potentially drive away visitors, or in worst case, affect and lower the search engine ranking position (SERP). واذا كانت هذه هي وصلات مقطوعه لم تعالج على النحو الصحيح واعادة توجيهها ، سيكون هناك الكثير من 404 صفحة لم يتم العثور على الخطأ ، ويحتمل ان بالسياره الزوار ، أو في اسوأ الحالات ، ويؤثر انخفاض محرك البحث ترتيب الموقف (serp).
The best way to manage the change of site’s URL due to movement of directory location is by using redirection feature provided by mod_rewrite module in Apache HTTPD web server. افضل طريقة لادارة تغيير عنوان الموقع بسبب حركة دليل الموقع باستخدام اعادة توجيه الميزه التي تقدمها وحدة mod_rewrite اباتشي في ملقم الويب httpd. Most web hosts using Apache web server supports mod_rewrite redirect by default, and can implement this trick with ease. تستضيف معظم الانترنت باستخدام خادم الويب اباتشي mod_rewrite تؤيد اعادة توجيه افتراضيا ، ويمكن تنفيذ هذه الحيله بسهولة. Else you will need to enable and turn on mod_rewrite module. آخر ستحتاج الى تمكين بدوره على وحدة mod_rewrite.
To redirect from a subdirectory or sub-folder to root directory, add the following line of text towards the top of .htaccess file located in the sub-directory to redirect all requests into that folder will be redirected to new location (ie root) properly. لاعادة توجيه من دليل فرعي او الفرعية لمجلد الدليل الرئيسي ، اضافة السطر التالي من النص نحو الأعلى لل. Htaccess الموجودة في الملف الفرعي دليل لإعادة توجيه جميع الطلبات الى هذا المجلد وسيتم اعادة توجيهها الى المكان الجديد (اي الجذر (سليم . If the .htaccess file does not exist, create one. واذا كان. Htaccess الملف غير موجود ، وإنشاء واحدة.
<IfModule mod_rewrite.c> <ifmoduleMod_rewrite.c>
RewriteEngine On على rewriteengine
RewriteBase / Rewritebase /
RewriteRule ^mylovelysite/(.*)$ /$1 [R=301,NC,L] ^] [روريترول] mylovelysite /(.*)$ / 1 دولار [ص = 301 ، كارولنا الشمالية ، ل]
</IfModule> </ Ifmodule>
Replace mylovelysite in the forth line above with the directory name on your website’s URL. يستعاض عن mylovelysite في خط اليها اعلاه مع اسم الدليل على عنوان موقعك. These line in .htaccess will redirect requests for the /mylovelysite sub-directory to the root directory by stripping “mylovelysite/” out of the URL. في هذه الخط. Htaccess وسوف تطلب اعادة توجيه لل/ mylovelysite الفرعية الدليل الى الدليل الرئيسى عن طريق تخفيف "mylovelysite /" من عنوان الموقع. For example, a visit to http://www.domain.com/mylovelysite/index.html will get redirected to http://www.domain.com/index.html, instead of returning an 404 error. فعلى سبيل المثال ، زيارة الى http://www.domain.com/mylovelysite/index.html سيحصل على اعادة توجيهها الى http://www.domain.com/index.html ، بدلا من العودة وجود 404 خطا. This is useful for visitors who come to your site via bookmark or favorite, or those find your web pages via search engines that haven’t re-crawled, re-spidered and refreshed with the new URLs in their search indexes in the initial days after moving. وهذا امر مفيد للزوار من يأتي الى موقعك عن طريق المفضلة او اشارة مرجعيه ، او تلك التي تجد في صفحات الويب الخاصة بك عن طريق محركات البحث التي لم اعادة الزحف ، واعادة spidered منتعشه مع عناوين جديدة في سعيها وراء الارقام القياسيه في الايام الاولى بعد تتحرك.
However, the movement will still likely to affect your site’s search engine rankings. ومع ذلك ، فان الحركة لا يزال من المحتمل ان تؤثر على موقعك تصنيفات محرك البحث. The rewrite rules above make sure of 301 permanent redirect to ensure that the PageRank or ranking will pass over to the new URLs for search engine optimization (SEO). إعادة كتابة القواعد المذكورة اعلاه فإن التأكد من اعادة توجيه 301 الداءمه لضمان ان ترتيب أو تصنيف الصفحه ستنتقل الى عناوين جديدة لمحرك البحث الامثل (سيو). Until the new site structures get fully reindexed, the organic traffic from search engines may be reduced temporarily. حتى الموقع الجديد الحصول على هياكل reindexed تماما ، والعضويه في حركة النقل من محركات البحث قد تخفض بصورة مؤقتة.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذا هو الاله الذي ترجم صفحة مقدمة "كما هى" دون ضمان. Machine translation may be difficult to understand. الترجمة الاليه قد يكون من الصعب ان نفهم. Please refer to يرجى الرجوع الى original English article المادة الاصليه English whenever possible. كلما كان ذلك ممكنا.
Share and contribute or get technical support and help at والمساهمة في حصة او الحصول على الدعم التقني والمساعدة فى My Digital Life Forums بلدي الرقميه الحياة المنتديات .
Related Articles مقالات ذات صلة
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules اضافة الى التخلف عن القطع في نهاية العنوان. Htaccess اعادة كتابة القواعد
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL اعادة توجيه أو اعادة كتابة لازالة ازدواج او تعدد شرائح (/ /) في العنوان
- Headdress for Mac OS X Reviews غطاء الرأس للماكنتوش الاستعراضات
- Search Engine Spider Simulator SEO Tool محرك بحث العنكبوت المحاكاه اداة سيو
- How to Change Folder Thumbnail Preview Picture in Windows Vista Explorer كيفية تغيير مجلد معاينه الصورة المصغره في مستكشف ويندوز فيستا
- Create Custom Webclips Easily for iPhone انشاء مخصص لwebclips بسهولة اي فون
- Change My Documents Folder Default Location Path in XP and Vista أغير مجلد وثائق الموقع الافتراضي الطريق في اكس بي وفيستا
- How to Move WordPress Blog to New Domain or Location كيفية التحرك لبلوق WordPress نطاق جديد او موقع
- How to Bookmark A Web Page Into Firefox 3 Bookmarks Folder When Clicking on Star on Location Bar كيف اشارة مرجعيه في صفحة ويب فايرفوكس 3 الاشارات المرجعيه الى مجلد عند النقر على نجمة على موقع نقابه المحامين
- WordPress Permalinks Does Not Work in xampp Setup WordPress permalinks لا يعمل في الاعداد xampp

































May 8th, 2008 14:40 في الثامن ايار / مايو ، 2008 14:40
Yeah.. نعم.. I’m thinking to move my blog from /blogs/ to the main root…ugh.. أفكر للتحرك بلدي من بلوق / بلوق / الجذر الرئيسي لهتاف اشمئزاز….. I’m just too scared to do it انا فقط خائفا جدا للقيام بذلك
June 19th, 2008 19:17 يونيو 19th ، 2008 19:17
Thanks dude i tried and it worked fine for my site وبفضل رجل حاولت وعملت غرامة لموقعي http://www.hurricanesoftwares.com but unfortunately it didn’t worked out for my other site. ولكن للاسف لم يعمل بها لبلدي موقع آخر. Wondering whats wrong. ويتساءل whats خطأ.
Ash الرماد
August 21st, 2008 08:43 اب / اغسطس 21st ، 2008 08:43
I’m kind of new to this but couldn’t you just do: انا من نوع جديد لهذا ولكنها لا تستطيع ان تفعل انت فقط :
Redirect permanent /mylovelysite/ إعادة توجيه دائم / mylovelysite / http://wwww.domain.com/