Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL Peradresavimo ar perrašymas Ištrinti dvigubais arba trigubais nerijos bruožas (/ /) 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 paieškos voras arba vikšrinių Googlebota yra viena pažangiausių ir geriausių turinio gobšuolis, kuris išgauna dauguma, jei ne visos bet kokių duomenų, interneto ir World Wide Web, nepriklausomai nuo to, ar toks turinys ar interneto puslapių, skirtų visuomenės lankytojai.
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. Kaip tokios, kai webmasterzy gali pastebėti, kad "Google" nuskaitymo ir indeksavimo interneto puslapius, kurie neturi būti egzistavo į pirmąją vietą. 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. Vienas iš tokių pvz yra klaidingas ir neteisingas URL nuoroda vietą, pavyzdžiui, kai dvigubas įstrižas brūkšnys, trivietis ukośnikiem ar kelis nerijos velniop buvo suformuota kaip dalis URL kaip papildomas ukośnikiem arba nerijos ribos buvo pridėti ar pridėtos prie tinklalapio 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. Pavyzdžiui, puslapio URL http://www.domain.com/index.php taip pat buvo nuskaityti Google http://www.domain.com//index.php arba kartais net 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. Interneto nuskaitymo ir vorinių indeksavimo Google galima identifikuoti ir atsekti Apache ir interneto serverio prieigos žurnalus. 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. Ir štai dvigubas įstrižas brūkšnys, trivietis ukośnikiem, keturi ar daugiau ukośnikiem URL gali rodyti nurodyti Google ieškos rezultatuose, ir potencialiai gali sukelti išrašus problemą, ir, dar blogiau, bauda, kuri leidžia svetainės išnyksta iš Google paieškos rezultatų sąrašus arba buvo stumiama į papildomi rezultatai mažas reitingą.
The reason for additional slashes in the URL is unknown, and seems like it only happens on Google search engne. Priežastis papildomas nerijos velniop į URL yra nežinoma, ir atrodo kaip tik vyksta per Google paieškos engne. One possibility is visitors or other websites type or put incorrect backlink (external link), which picked up by ultra-sensitive Viena galimybė yra lankytojų ar kitų svetainių tipą arba pateikti neteisingi atgalinę (external link), kuri padidėjo iki itin jautrūs Googlebot or Mediapartners-Google Googlebota arba Mediapartners-Google (Google AdSense crawler which also contribute website indexing of Google Search). ( "Google AdSense, kuri taip pat prisideda svetainėje indeksavimas 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. Tačiau vienas dalykas yra tikrai - kai vienas puslapis su neteisėto dvigubo ar kelių gretimų nerijos ribos buvo indeksuota, visame internete puslapiuose svetainėje gali būti linkęs į tokių klaidų per.
To fix and resolve the double slash or multiple slash URLs issue is pretty simple. Norėdami nustatyti ir išspręsti dvigubą ukośnikiem ar kelis ukośnikiem URL klausimą yra gana paprasta. 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). Tiesiog sukurti mod_rewrite direktyvos. Htaccess kodas arba Apache httpd.conf konfigūracijos failą perrašyti ar peradresavimo nuolat (status 301) visus URL, nustatyta, kad yra du arba daugiau gretimų skyrių arba gale nerijos ribos jos tinkamą ir teisingą URL tik viengubu pasviru brūkšniu ( /), o / arba / arba / / / arba / / / / ar daugiau pagal URL adresą, sukurti. Htaccess failą į namų katalogą (paprastai public_html), interneto svetainė su šį URL perrašyti ir peradresavimo direktyvos (jei. Htaccess jau egzistuoja, tiesiog įtraukti kodą į viršų).
# Remove multiple slashes anywhere in URL # Pašalinti daug nerijos ribos visur 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). Pirmiau peradresavimai arba URL perrašyti metodu išanalizuoti visą URL skyriuje dalis po domeno vardą ir pakeisti kiekvieną dvigubo ukośnikiem vieno įstrižas brūkšnys (ir taip, kad būtų daugiau kaip 2 nerijos ribos URL pernelyg). For administrators who want to more efficient rewrite command, use the following code, which can only be used on .htaccess file. Administratoriams, kurie nori efektyviau perrašyti komandą, naudoti šį kodą, kuris gali būti naudojamas tik. Htaccess failas.
# Remove multiple slashes after domain # Pašalinti daug nerijos velniop po domeno
RewriteRule ^/(.*)$ http://www.domain.com/$1 [R=301,L]
Replace domain name accordingly. Pakeisti domenas atitinkamai.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules Pridėti ukośnika su End of the URL. Htaccess perrašymas Taisyklės
- SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder SEO Friendly perrašymas būdas Perkelti URL iš Pakatalogį šaknies Parent Folder
- Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005 Pašalinti ar pašalinti keletą duomenų bazė pasisakymų Microsoft SQL Server 2005
- Running Multiple Instances of Windows Live Messenger (WLM) Polygamy and Remove Banner Ads with MultiLive Veikia daugelyje pasisakymų Windows Live Messenger (WLM) Poligamiją ir šalinti Baneris Skelbimai MultiLive
- Redirect Blogger RSS Feed to FeedBurner for Detailed Statistics and Monetize Ads Peradresavimai Blogger RSS su FeedBurner už Detali statistika ir zarabianie skelbimai
- Remove and Uninstall or Disable ModSecurity (mod_security) Išimkite ir pašalinti arba išjungti ModSecurity (mod_security)
- Seeing Double Wall Clock Matydamas Double Wall Clock
- Double Driver Backups and Restores Device Drivers in Simple Steps Dvivietis Vairuotojas atsarginiai ir Vėl Device Drivers Simple žingsniai
- No Sex Interaction In Airbus A380 Double Bed Suites Nr Lytis sąveikos Airbus A380 Dvigulė lova Apartamentai
- Redirect, Stream and Listen All Audio, Sound and Music from Windows Mobile 5 and 2003 Devices to Bluetooh Headset or Earpiece Peradresuoti, srovės ir Klausyti Visi Audio, Garsas ir muzika iš "Windows Mobile 5 ir 2003 m. prietaisų su Bluetooh çranga arba ausinės










































July 8th, 2009 16:05 8 liepa 2009 16:05
Can any one tell me that how can i replace this double slashes to single slash in the following C# snippet. Ar kas nors pasakys man, kad aš galiu pakeisti šią dvigubą nerijos velniop vieno ukośnikiem ir taip C # fragmentą.
string Path=@”C:\\Temp\\ooops.bak” string kelias @ = "C: \ Temp \ \ ooops.bak"
January 31st, 2009 20:02 Sausis 31, 2009 20:02
Hi! Labas! Is there a way to remove a single slash in the end of the URL? Ar galima pašalinti vieną ukośnikiem ir pabaigoje URL? for example, pavyzdžiui, http://www.example.com/blog/ http://www.example.com/blog/ to į http://www.example.com/blog http://www.example.com/blog
August 18th, 2008 03:00 18 rugpjūčio 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. Aš atsiprašau, bet ši priežastis problemų su IE 8 internete pjaustymo pažeidimą, ir veikia tik namų katalogą.
All sub directory listings will get triple slashes and expose server side includes, from the new perl hacks available. Visos SUBMENIU katalogas aukcione bus trigubai nerijos ribos ir eksponuoti Server Side Includes, iš naujo perl hacks prieinama.
Warning: Įspėjimas:
If you use any password protected logins, do not include this in your htaccess mod rewrite. Jei naudojate bet slaptažodžiu apsaugotas prisijungimus, neapima šios jūsų Htaccess mod rewrite.
July 29th, 2008 19:33 29 liepa 2008 19:33
Thanks a lot, a friend ask me how to remove that and we find the solution here Thanks a lot, draugui paklausti, kaip ištrinti, kad ir mes surasime sprendimą čia