Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL إعادة توجيه أو إعادة الكتابة لإزالة ازدواج أو تعدد الجروح (/ /) في عنوان

Google search engine spider or crawler Googlebot is one of the most advanced and finest content grabber that extracts most if not all of any data of the Internet and World Wide Web, regardless of whether such contents or web pages are intended for public visitors. جوجل محرك البحث العنكبوت أو الزحافة Googlebot هي واحدة من أكثرها تقدما ، وأرقى محتوى مقتطفات المختطف أن معظم ، إن لم يكن جميع من أي بيانات من شبكة الإنترنت والشبكة العالمية ، بصرف النظر عما إذا كان هذا أو محتويات صفحات الويب ويقصد العامة للزوار.

As such, some webmasters may notice that Google is crawling and indexing web pages which are not supposed to be existed in the first place. على هذا النحو ، وبعض مشرفي المواقع مايو الإشعار على ان غوغل تحاول الزحف وفهرسة صفحات الويب التي لا يفترض أن تكون موجودة في المقام الأول. One such instance is incorrect and wrong URL link location, such as when double slash, triple slash or multiple forward slashes been formed as part of the URL as extra slash or slashes been appended or added to the web page URLs. ومن هذه الحالات غير صحيح والخطأ ربط عنوان الموقع ، مثل مضاعفة عندما خفض ، أو خفض الثلاثي إلى الأمام شرائح متعددة شكلت كجزء من عنوان اضافية كما تم خفض أو شرائح أو تذييل تضاف إلى صفحة عناوين المواقع على الشبكة العالمية. For example, a page with URL of http://www.domain.com/index.php is also been crawled by Google as http://www.domain.com//index.php, or sometimes even http://www.domain.com///index.php. فعلى سبيل المثال ، مع عنوان صفحة من http://www.domain.com/index.php كما تم الزحف على البريد الإلكتروني كما http://www.domain.com//index.php ، أو حتى أحيانا http:// www.domain.com///index.php.

The web crawl and spider indexing by Google can be tracked and traced in Apache or web server access logs. الشبكة الزحف وفهرسة العنكبوت : البريد الإلكتروني يمكن تتبع وتعقب في أباتشي خادم الويب أو سجلات الدخول. And these double slash, triple slash, quadruple or more slash URLs can show up in the Google search results, and potentially can cause duplicate content issue , and worse, penalty that makes the site vanishing from Google search results listing or been pushed into supplemental results with low ranking. وخفض هذه المزدوجة ، وخفض ثلاث مرات ، أربع مرات أو أكثر يمكن خفض عناوين المواقع تظهر في نتائج بحث Google ، وربما يمكن أن يسبب ازدواجية محتوى الموضوع ، والأسوأ من ذلك ، أن يجعل عقوبة التلاشي من موقع Google نتائج البحث قائمة أو دفعت إلى نتائج تكميلية مع رتب منخفضة.

The reason for additional slashes in the URL is unknown, and seems like it only happens on Google search engne. والسبب في شرائح إضافية في عنوان الموقع هو غير معروف ، ويبدو أنه يحدث فقط على Google البحث engne. One possibility is visitors or other websites type or put incorrect backlink (external link), which picked up by ultra-sensitive هناك احتمال واحد الزوار أو مواقع أخرى أو وضع غير صحيح نوع صلة عودة (وصلة خارجية) ، التي التقطت بالغة الحساسية Googlebot or Mediapartners-Google Googlebot أو Mediapartners جوجل (Google AdSense crawler which also contribute website indexing of Google Search). (Google AdSense الزحافة التي تسهم أيضا في موقع فهرسة بحث غوغل). But one thing is for sure - when one page with wrongful double or a few adjacent slashes been indexed, entire web pages within the website may be prone to such error too. ولكن شيئا واحدا مؤكدا هو -- عند صفحة واحدة أو مزدوجة غير مشروعة مع عدد قليل من شرائح المجاورة تم فهرستها ، وصفحات كاملة داخل الموقع قد تكون عرضة لمثل هذا الخطأ أيضا.

To fix and resolve the double slash or multiple slash URLs issue is pretty simple. لتحديد وتسوية المزدوجة أو المتعددة خفض خفض عناوين المواقع المسألة بسيطة جدا. Simply create a mod_rewrite directive in .htaccess code or Apache httpd.conf configuration file to rewrite or redirect permanently (status 301) all URL found to be contained two or more adjacent or trailing slashes to its proper and valid URL with just a single slash (/) instead or // or /// or even //// or more within the URL address, create a .htaccess file in the root directory (normally public_html) for the website with the following URL rewriting and redirection directive (if .htaccess already exists, just add in the code on top). ببساطة خلق mod_rewrite في التوجيه. htaccess رمز أو httpd.conf اباتشي ملفات لإعادة كتابة أو إعادة توجيه دائم (مركز 301) كل عنوان وجد أن الواردة اثنين أو أكثر من شرائح المجاورة أو في المرتبة التالية لالصحيح وصالحة عنوان واحد فقط مع خفض) /) بدلا أو / / أو / / / أو حتى / / / / أو أكثر في إطار التصدي للعنوان ، وخلق. htaccess ملف في دليل الجذر (عادة public_html) للموقع مع التالية عنوان إعادة كتابة وإعادة توجيه التوجيه (إذا. htaccess موجود بالفعل ، أضيف في مدونة على أعلى).

# Remove multiple slashes anywhere in URL # إزالة شرائح متعددة في أي مكان في العنوان
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
2 RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]

The above redirection or URL rewrite method will parse the complete URL section on the part after the domain name, and will change each part of double slash to single slash (and thus able to handle more than 2 slashes in URL too). أعلاه إعادة توجيه أو إعادة كتابة عنوان طريقة تحليل الكامل لعنوان الباب على جزء بعد اسم الحقل ، وسوف تغير كل جزء من مضاعفة خفض لخفض واحد (وبالتالي قادرة على التعامل مع أكثر من 2 في شرائح العنوان جدا). For administrators who want to more efficient rewrite command, use the following code, which can only be used on .htaccess file. للمديرين الذين يريدون اعادة كتابة أكثر كفاءة القيادة ، استخدام الشفرة التالية ، التي لا يمكن إلا أن يكون على المستخدم. htaccess الملف.

# Remove multiple slashes after domain # شرائح متعددة بعد إزالة المجال
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R=301,L]

Replace domain name accordingly. يستعاض عن اسم النطاق وفقا لذلك.

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 المادة الانكليزية الأصلية whenever possible. كلما كان ذلك ممكنا.

Share and contribute or get technical support and help at وحصة المساهمة أو الحصول على الدعم التقني والمساعدة في My Digital Life Forums بلادي الرقمي الحياة المنتديات .



2 Responses to “Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL” 2 الردود على "إعادة توجيه أو إعادة الكتابة لإزالة ازدواج أو تعدد الجروح (/ /) في عنوان"

  1. Tiger SEO نمر من كبار المسئولين الاقتصاديين
    July 29th, 2008 19:33 يوليو 29th ، 2008 19:33
    1

    Thanks a lot, a friend ask me how to remove that and we find the solution here وبفضل الكثير ، صديق لي أن أسأل كيف لإزالة وأن نجد الحل هنا :)

  2. jeffb
    August 18th, 2008 03:00 أغسطس 18th ، 2008 03:00
    2

    I am sorry but this causes trouble with IE 8 web slicing by breaking it, and only works in the root directory. أنا آسف ولكن هذه الأسباب مشاكل مع آي إي 8 تشريح شبكة الإنترنت عن طريق كسر ذلك ، ويعمل فقط في الدليل الجذر.

    All sub directory listings will get triple slashes and expose server side includes, from the new perl hacks available. دليل جميع القوائم الفرعية ستحصل على ثلاث شرائح وكشف خادم الجانب يشمل ، من جديد بيرل المأجورون المتاحة.

    Warning: تحذير :

    If you use any password protected logins, do not include this in your htaccess mod rewrite. إذا كنت تستخدم أي كلمة السر للدخول المحمية ، لا تشمل هذا في وزارة الدفاع اعادة كتابة htaccess الخاص بك.

Leave a Reply ترك الرد

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

add trailing slash and redirect إضافة تأتي متأخرة عن خفض وإعادة توجيه - -- apache rewriterule double slash اباتشي rewriterule مضاعفة خفض - -- fix URL windows slash تحديد عنوان زجاج خفض - -- how to redirect amultiple directory كيفية إعادة توجيه amultiple دليل - -- htaccess directory slash remove htaccess دليل خفض إزالة - -- htaccess remove htaccess إزالة - -- mod rewrite trailing slash وزارة الدفاع اعادة كتابة تأتي متأخرة عن خفض - -- mod_rewrite double slash mod_rewrite مضاعفة خفض - -- multiple forward slashes in url إلى الأمام شرائح متعددة في العنوان - -- multiple url for single website عنوان متعددة لموقع واحد - -- php strip forward slashes php الشريط إلى الأمام شرائح - -- php remove trailing slash php إزالة تأتي متأخرة عن خفض - -- php delete double slash php حذف مضاعفة خفض - -- redirect rewrite إعادة توجيه إعادة كتابة - -- remove part from url mod_rewrite إزالة جزء من عنوان mod_rewrite - -- remove trailing slashes urls تأتي متأخرة عن شرائح إزالة عناوين المواقع - -- remove double slash url إزالة مضاعفة خفض رابط - -- remove double slash url php إزالة مضاعفة خفض رابط php - -- rewrite rule add slash اعادة كتابة المادة تضاف خفض - -- RewriteRule multiple slashes RewriteRule شرائح متعددة - -- rewrite redirect اعادة كتابة إعادة توجيه - -- URLRewrite remove trailing slash URLRewrite إزالة تأتي متأخرة عن خفض - -- url rewriting slash إعادة كتابة عنوان خفض - -- why javascript remove my slash لماذا جافا سكريبت إزالة خفض بلادي - -- how to make php url with slash كيفية جعل رابط مع خفض php - -- RewriteRule last slash RewriteRule الماضي خفض - --