URLs with Double Slash
URLs with paths which contain two or more slashes next to each other. i.e. https://www.example.com//path
Priority: Low
Impact: Neutral
What issues it may cause
URL formats do not generally use a double slash which could indicate the URL was created by a malformed link.
The URL will be treated as a unique URL and may result in a duplication of the same URL without the double slash.
How do you fix it
- Identify if there are internal links to URLs with a double slash and correct them.
- Check that canonical URLs on the URLs with the double slash do not include the double slash.
- Redirect URLs with a double slash to the single slash.
What is the positive impact
Reducing the amount of duplicate pages in search engine's indexes can save crawl budget for more important pages and avoid the dilution of PageRank helping the remaining pages to rank better.
Canonicalised or redirected pages will be crawled less often, improving crawl efficiency and saving on server costs.
How to fetch the data for this report template
You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:
- Query
- Variables
- cURL
query GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlUrls(after: $after, reportType: Basic) {
nodes {
pageTitle
url
description
foundAtUrl
deeprank
level
canonicalLinksInCount
linksInCount
canonicalizedPage
isSelfCanonical
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"double_slash_urls"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { pageTitle url description foundAtUrl deeprank level canonicalLinksInCount linksInCount canonicalizedPage isSelfCanonical foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"double_slash_urls"}}' https://api.lumar.io/graphql