Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL Redirect alebo Rewrite odobrať dvoch alebo viacerých lomítka (/ /) do 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. Google vyhľadávač pavúka alebo prehľadávače Googlebot je jedným z najrozvinutejších a najkvalitnejších obsah grabber, že výťažky väčšina, ak nie všetky údaje o každom z Internetu a World Wide Web, a to bez ohľadu na to, či taký obsah alebo webové stránky sú určené pre verejnosť návštevníkov.
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. Ako taký, niektorí webmasteri môžete všimnúť, že Google je prehliadania a indexovanie webových stránok, ktoré nie sú bejt existovali na prvom mieste. 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. Jedným z takých je napríklad nesprávne a chybné URL odkaz mieste, ako keď dvojitá lomka, třílůžkové lomka alebo viac dopredné lomítka vznikli ako súčasť URL za extra lomka lomítka alebo bolo pripevnené alebo pridané do webovej stránky URL. 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. Napríklad na stránke s URL http://www.domain.com/index.php je tiež prechádzať pomocou Google ako http://www.domain.com//index.php, alebo niekedy dokonca 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. Prehliadania webu a spider indexovaniu pomocou Google možno sledovať a vysledovať v webový server Apache alebo prístup prihlási. 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. A tieto dvojitá lomka, třílůžkové lomka, štvornásobný alebo lomka URL, môžete vidieť vo výsledkoch vyhľadávania Google, a potenciálne môžu spôsobiť duplicitné obsah otázka, a čo je horšie, pokuta, ktorá robí z webu zasúvacej z výsledkov vyhľadávania Google alebo výpis bola tlačené do doplnkového výsledky s nízkou rebríčku.
The reason for additional slashes in the URL is unknown, and seems like it only happens on Google search engne. Dôvodom pre ďalšie lomítka v URL je neznámy, a zdá sa, že podobné to sa deje len na vyhľadávanie Google engne. One possibility is visitors or other websites type or put incorrect backlink (external link), which picked up by ultra-sensitive Jednou z možností je návštevníkmi alebo iné servery typu alebo uvedenie nesprávnych backlink (externý odkaz), ktorý by vyberal ultra-citlivý Googlebot or Mediapartners-Google Googlebot alebo Mediapartners-Google (Google AdSense crawler which also contribute website indexing of Google Search). (Google AdSense, ktorý taktiež prispieva prehľadávače indexovanie webových stránok Google Search). 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. Ale jedna vec je istá - ak jedna strana s dvojitým alebo chybným niekoľkých priľahlých rozřezává bol indexovaný, celých webových stránok na webovej stránke môže byť náchylný k takejto chybe taky.
To fix and resolve the double slash or multiple slash URLs issue is pretty simple. Opraviť a vyriešiť dvojitá lomka lomka alebo viac adries URL otázka je docela jednoduché. 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). Stačí vytvoriť smernice v mod_rewrite. Htaccess kód alebo Apache httpd.conf konfiguračný súbor prepísať alebo presmerovať trvalo (stav 301) sa zistilo, že všetky adresy URL obsiahnuté dvoch alebo viac po sebe, alebo koncové rozřezává na jej riadne a platné URL iba jedinej lomka ( /) miesto alebo / / alebo / / / alebo aj / / / / alebo do URL adresy, vytvoriť. htaccess v koreňovom adresári (zvyčajne public_html) pre webové stránky s nasledujúcimi URL prepisovanie a presmerovanie smernice (je-li. htaccess už existuje, stačí pridať do kódu nahoře).
# Remove multiple slashes anywhere in URL # Odstrániť viac rozřezává kdekoľvek v URL
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). Vyššie uvedené presmerovanie URL alebo prepísať metódy parse kompletnú URL bod na strane po doménové meno, a bude sa meniť každú časť dvojitá lomka na jedinej lomka (a teda schopné spracovať viac ako 2 lomítka v URL aj). For administrators who want to more efficient rewrite command, use the following code, which can only be used on .htaccess file. Pre administrátorov, ktorí chcú efektívnejšiu prepísať príkaz, použite nasledujúci kód, ktorý možno použiť len on. Htaccess.
# Remove multiple slashes after domain # Odstrániť viac lomítka za doménu
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R=301,L]
Replace domain name accordingly. Nahradiť názov domény spôsobom.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.
Related Articles Súvisiace články
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules Pridať lomítko na konci URL s. Htaccess Prepis pravidiel
- SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder SEO Friendly Rewrite Metóda Presun URL webovej stránky Od Potomok pre Root nadradeného priečinka
- Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005 Uninstall a Odstrániť Viacnásobné databázové inštancie Microsoft SQL Server 2005
- Running Multiple Instances of Windows Live Messenger (WLM) Polygamy and Remove Banner Ads with MultiLive Spustenie viac inštancií Windows Live Messenger (WLM) polygamiu a odobrať bannerovej reklamy s MultiLive
- Redirect Blogger RSS Feed to FeedBurner for Detailed Statistics and Monetize Ads Redirect Blogger RSS kanál na FeedBurner pre podrobné štatistiky a zpeněžit Reklamy
- Seeing Double Wall Clock Vidieť dvojité steny Hodiny
- Double Driver Backups and Restores Device Drivers in Simple Steps Dvojlôžková Driver zálohovanie a obnovuje Device Drivers v jednoduchých krokoch
- No Sex Interaction In Airbus A380 Double Bed Suites No Sex Interakcie V Airbus A380 dvoulůžko Suites
- Remove and Uninstall or Disable ModSecurity (mod_security) Demontujete a Odinštalujte alebo zakážte ModSecurity (mod_security)
- Redirect, Stream and Listen All Audio, Sound and Music from Windows Mobile 5 and 2003 Devices to Bluetooh Headset or Earpiece Redirect, Stream a Vypočuť Všetky Audio, Zvuk a Hudba z Windows Mobile 5 a 2003 Zariadenie Bluetooh headset alebo Slúchadlo










































January 31st, 2009 20:02 31. január 2009 20:02
Hi! Nazdar! Is there a way to remove a single slash in the end of the URL? Existuje spôsob, ako odstrániť jedno lomítko na konci URL? for example, Napríklad http://www.example.com/blog/ http://www.example.com/blog/ to do http://www.example.com/blog http://www.example.com/blog
August 18th, 2008 03:00 18. august 2008 03:00
I am sorry but this causes trouble with IE 8 web slicing by breaking it, and only works in the root directory. Omlouvám se, ale toto spôsobuje problémy s IE 8 web Krájače rozdeleniu, a funguje len v koreňovom adresári.
All sub directory listings will get triple slashes and expose server side includes, from the new perl hacks available. Všetky podstránky adresára Zoznam dostanete trojposteľová lomítka a vystaviť na strane servera zahŕňa z nových perl rozsekává k dispozícii.
Warning: Upozornenie:
If you use any password protected logins, do not include this in your htaccess mod rewrite. Ak používate heslo chránených Logins, nezahŕňa to do htaccess mod prepísať.
July 29th, 2008 19:33 29. júl 2008 19:33
Thanks a lot, a friend ask me how to remove that and we find the solution here Díky moc, priateľ ma opýtať, ako odstrániť a že nájdeme riešenie tu