How to Fix Uppercase Characters in URLs (and Redirect Them)
URLs such as example.com/Products/Blue-Widget are case-sensitive on most servers, so /Products/Blue-Widget and /products/blue-widget can be treated as two different pages. By the end of this guide you will have found every page URL containing capital letters, moved each one to a lowercase address, 301-redirected the old versions and updated internal links, canonicals and sitemaps.

Why it matters
Search engines treat URL paths as case-sensitive, so mixed-case URLs can create duplicate pages, split link signals between variants and waste crawl budget. Users who type or share the lowercase version may get a 404 on Linux servers, and AI crawlers may cite whichever variant they find first. The ranking impact is small, but the fix is quick and removes one source of duplication.
What you need
Step-by-step fix
List every page URL with uppercase letters
Crawl the site and filter for URLs containing any character A–Z. The check looks at the full page URL, so it includes:
- Path segments, e.g. /Blog/My-Post
- File names, e.g. /Docs/Guide.html
- Query strings, e.g. ?Category=Shoes or ?utm_Source=mail
In Screaming Frog, open the URL tab and select the Uppercase filter, then use Export. Record where each URL is linked from (the Inlinks tab) so you can fix the source later.
Rename slugs to lowercase in your CMS
Open each affected page in your CMS and change its slug or handle to all lowercase, keeping hyphens as word separators. html. Avoid renaming page URLs you have already removed or retired.
Keep a two-column sheet showing the old URL and the new URL. You will use it for redirects.
Old URL,New URL /Services/Web-Design,/services/web-design /Blog/2025/SEO-Checklist,/blog/2025/seo-checklist /Docs/Guide.html,/docs/guide.html
Add 301 redirects from uppercase to lowercase
For a handful of URLs, add one-to-one 301 redirects in your CMS redirect manager. For many URLs, use a server-level rule that lowercases any path containing a capital letter. htaccess.
On Cloudflare, go to Rules > Redirect Rules and create a dynamic redirect:
- Expression:
http.request.uri.path matches "[A-Z]"(regex matching requires a paid plan) - Target:
concat("https://example.com", lower(http.request.uri.path)) - Status code: 301, with Preserve query string turned on
# Apache (httpd.conf or <VirtualHost>)
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule ^(.*)$ ${lc:$1} [R=301,L]
# Nginx: explicit map (no extra modules needed), in the http block
map $uri $lc_redirect {
default "";
/Services/Web-Design /services/web-design;
/Blog/2025/SEO-Checklist /blog/2025/seo-checklist;
}
# in the server block
if ($lc_redirect) { return 301 $lc_redirect$is_args$args; }Update internal links, canonicals and sitemaps
Redirects are a safety net. Your own pages should link straight to the lowercase URL. Search menus, footers, page content, templates and hard-coded buttons for the old uppercase paths, using the Inlinks export from step 1.
Then make sure that:
- Each page's
rel="canonical"points to the lowercase URL - The XML sitemap contains only the lowercase URLs
- Any
hreflangtags use lowercase URLs
<link rel="canonical" href="https://example.com/services/web-design">
Fix uppercase URLs generated by code
Some uppercase URLs come from templates rather than editors, for example category names inserted straight into paths, or pagination links such as /Page/2. Find the template or route that builds the link and apply a lowercase function to it, such as strtolower() in PHP, .toLowerCase() in JavaScript or | downcase in Liquid. Make sure the target route still resolves once the path is lowercase.
<a href="/category/{{ category.name | handleize }}">{{ category.name }}</a>Verify the redirects and re-run the audit
Request a few old uppercase URLs with curl. Each should return a single 301 that points to the lowercase URL, and the lowercase URL should return 200. Watch for chains such as uppercase to lowercase to trailing-slash; send each request to the final URL in one hop.
Then re-crawl the site and confirm that the Uppercase filter is empty.
curl -sI https://example.com/Services/Web-Design | grep -iE "^(HTTP|location)" # Expected: # HTTP/2 301 # location: https://example.com/services/web-design curl -sI https://example.com/services/web-design | head -1 # Expected: HTTP/2 200
Platform-specific notes
WordPress
WordPress lowercases post and page slugs automatically, so uppercase URLs usually come from custom permalink plugins, hard-coded links or uploaded file names such as /wp-content/uploads/Brochure.pdf. Edit slugs in the editor's Settings sidebar under URL. Add redirects with the Redirection plugin (Tools > Redirection) or your SEO plugin's redirect manager.
Shopify
Shopify generates lowercase handles, so uppercase URLs usually come from manually typed links in menus, theme code or blog content. Edit a handle under Search engine listing > URL handle on the product, collection or page, and keep 'Create a URL redirect' ticked. Manage other redirects under Online Store > Navigation > URL Redirects (in newer admin versions, Content > Menus > View URL redirects).
Wix
Edit a page's slug in the Pages panel via Settings > SEO basics > URL slug. Add one-to-one 301s in Dashboard > Marketing & SEO > SEO > URL Redirect Manager. Wix has no regex lowercase rule, so list each old URL.
Next.js
Lowercase routes in middleware.ts (renamed proxy.ts in Next.js 16). If pathname !== pathname.toLowerCase(), clone req.nextUrl, set url.pathname = pathname.toLowerCase() and return NextResponse.redirect(url, 301). Leave the query string untouched. Also rename any app/ or pages/ folders that contain capital letters.
Nginx
Nginx has no built-in lowercase function. Use an explicit map of old paths to new paths, as in step 3. For a catch-all rule, use perl_set (requires ngx_http_perl_module) or a Lua/OpenResty rule that calls lc() on $uri, or apply the rule at your CDN instead.
Check that it worked
✅ How to verify
- Run curl -sI on several old uppercase URLs and confirm a single 301 hop to the lowercase URL, which returns 200.
- Re-crawl the site and confirm the Uppercase URL filter shows zero pages and there are no new 404s.
- Open the XML sitemap and search for [A-Z] to confirm only lowercase URLs are listed.
- In Google Search Console, check Pages > 'Page with redirect' over the following weeks to confirm the uppercase variants are being dropped.
⚠️ Common mistakes
- Renaming slugs without adding 301 redirects, which turns every old link and bookmark into a 404.
- Lowercasing entire query strings, which breaks case-sensitive tokens, tracking IDs and signed URLs.
- Leaving menus, canonicals and sitemaps pointing at the uppercase URLs, so crawlers keep hitting redirects.
- Putting an Apache RewriteMap in .htaccess, where it is not allowed and causes a 500 error.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
Are URLs case-sensitive for SEO?
Yes, for the path and query string. Google treats /Page and /page as different URLs, though the domain part is not case-sensitive. Mixed case can create duplicate content unless one version redirects to the other or the variants share a canonical.
Should I use a 301 or a canonical tag for uppercase URLs?
Use a 301 redirect. It sends users and bots to one URL and consolidates link signals. A canonical tag is only a hint, and it leaves both versions reachable.
Will changing URLs to lowercase hurt my rankings?
Not with one-hop 301 redirects and updated internal links. Rankings and links transfer to the new URL. You may see a brief fluctuation while Google recrawls, usually within a few weeks.
Do uppercase letters in image or PDF file names matter?
This check looks at page URLs, but the same duplication and 404 risks apply to files. Use lowercase file names when you upload, and redirect any important documents you rename.
How to Fix Underscores in URLs: Switch to Hyphens Safely
How to Fix Broken AMP Pages and rel="amphtml" Link Errors
How to Fix Infinite Scroll Crawlability with Paginated URLs
How to Enable HTTP/2 or HTTP/3 on Your Website or CDN
How to Check Googlebot Activity in Your Server Logs
How to Fix Slow DNS Response Time for Your Website