What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set one canonical HTTPS hostname and redirect every IP, HTTP, alternate-host, and (where applicable) IPv6 request to it with a server-side permanent redirect. Put the rule in the first web server or CDN layer that receives the request, preserve the original path and query string, then verify the Location header and final URL with command-line tests. Finish by aligning canonical tags, internal links, and sitemaps with the same hostname.

What an IP canonical issue is

An IP canonical issue occurs when the same site responds at a numeric address such as http://203.0.113.10/ and at its intended hostname such as https://example.com/. The problem can also involve several hostname and scheme variants: apex versus www, HTTP versus HTTPS, or IPv4 versus IPv6. Search engines then have to choose which URL represents the page.

The target state is simple: one exact HTTPS hostname is public, and every alternate entry point returns one redirect hop to that hostname. A request for http://203.0.113.10/products?id=42, for example, should end at https://example.com/products?id=42, not at a home page, an old host, or another redirecting URL.

Inventory every entry point before changing configuration

Test the variants that can actually reach your infrastructure and record the status code, every Location header, and the final URL.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
  1. Check the IPv4 address over HTTP and, if a valid TLS certificate is available for the IP, over HTTPS.
  2. Check the apex hostname and www hostname over both HTTP and HTTPS.
  3. Use a representative deep path, a path containing a trailing slash, and a URL with a query string.
  4. Check IPv6 if the domain has an AAAA record or your server listens on IPv6.
  5. Send an unknown or empty Host value where your server or CDN permits it; this reveals the default virtual host.
curl -sS -D - -o /dev/null 'http://203.0.113.10/products?id=42'
curl -sS -D - -o /dev/null 'http://example.com/products?id=42'
curl -sS -D - -o /dev/null 'http://www.example.com/products?id=42'
curl -sS -D - -o /dev/null 'https://example.com/products?id=42'
curl -sS -D - -o /dev/null --ipv6 'http://example.com/products?id=42'

The first response should expose a single redirect. The important fields are the status line and Location. To see the complete chain and the final response, add -L:

curl -sS -IL 'http://203.0.113.10/products?id=42'

For an HTTPS test that deliberately bypasses DNS while still sending the canonical hostname and SNI, use --resolve:

curl -sS -I --resolve example.com:443:203.0.113.10 'https://example.com/products?id=42'

Do not use -k as proof that HTTPS is healthy. It disables certificate verification and is useful only for diagnosing a certificate or routing problem.

Choose the canonical destination and redirect status

Choose one exact destination, normally https://example.com or https://www.example.com. The certificate presented during the final HTTPS connection must cover that hostname. Redirecting an IP request to a hostname with an invalid certificate merely moves the failure to the next connection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Situation Status Use
Production consolidation 301 Permanent redirect from IP, HTTP, alternate host, or retired URL to the selected HTTPS hostname.
Short-lived search experiment 302 Temporary test when you want the original URL to remain the preferred indexed address.

Google describes redirects as a strong signal that the redirect target should become canonical. A temporary experiment should therefore use 302, while a settled production choice should use a permanent redirect. Avoid chains such as IP → HTTP domain → HTTPS domain; point the first request directly at the final HTTPS URL.

Redirect at the origin with Apache

Place a catch-all or default virtual host before the normal application virtual hosts so an IP request or unknown Host cannot fall through to an unrelated site. Apache’s Redirect directive appends the requested path to the target.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
<VirtualHost *:80>
    ServerName 203.0.113.10
    Redirect permanent / https://example.com/
</VirtualHost>

Make this the default port-80 virtual host, or create an explicit catch-all according to your Apache version and host layout. A request for /products?id=42 becomes https://example.com/products?id=42; verify that behavior rather than assuming it after a configuration reload.

If you intentionally accept HTTPS connections addressed to the IP, configure a separate default :443 virtual host with a certificate valid for the requested name and return the same redirect. If the browser reaches the IP with a certificate that does not match the IP, it can stop with a certificate warning before Apache has an opportunity to send a redirect. In that case, fix the certificate/routing design or ensure users enter the hostname directly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Redirect at the origin with Nginx

Nginx can handle both IPv4 and IPv6 in a default server block. The $request_uri variable contains the original path and query string, so it is appropriate when you want to preserve both.

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;

    return 301 https://example.com$request_uri;
}

Reload Nginx only after validating the syntax:

nginx -t
systemctl reload nginx

For HTTPS requests that arrive at a default server, add a corresponding listen 443 ssl default_server block only when the certificate presented there is valid for the connection. Otherwise, clients may reject the TLS handshake before the redirect is generated.

Use Cloudflare when the hostname is proxied

If Cloudflare is the first layer receiving the request, use Redirect Rules or URL Forwarding rather than relying on an origin rule that the request may never reach. Match the unwanted host or scheme, set the destination to the canonical HTTPS hostname, and enable preservation of the original path and query string. Cloudflare documents forwarding behavior that can retain both.

When an alias domain has no origin server attached, Cloudflare also documents alias-domain forwarding. This is useful when the alternate hostname exists only to redirect and should not be sent to an application server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

After publishing a rule, check whether DNS is proxied, whether another rule has a higher priority, and whether a cached redirect is masking the new behavior. Test both the edge response and the origin response where you have access to both.

Preserve paths and query strings without creating loops

A canonical redirect should normally retain the request path and query string. This lets a link to /docs/setup?lang=en arrive at the equivalent canonical URL instead of being discarded at the home page.

  • In Nginx, use $request_uri in the return directive.
  • In Apache, use Redirect permanent / https://example.com/ or a rewrite that explicitly retains the original path; test encoded characters and trailing slashes.
  • In Cloudflare, select the documented option to preserve path and query string.
  • Do not redirect the canonical hostname back through the IP rule. Exclude the final host from any broad catch-all condition.
  • Keep the chain to one hop whenever possible. A chain increases latency and makes failures harder to diagnose.

If a particular legacy path must map to a different page, create a deliberate path-specific rule and document that exception. Do not use a fixed landing page for every IP request unless losing the original path is intentional.

Align the other canonical signals

Redirects are only one signal. Update internal links so they use the selected HTTPS hostname, add a self-referencing rel="canonical" tag on indexable pages, and list only canonical URLs in XML sitemaps. Remove old hostnames from templates, feeds, structured data, and hard-coded asset URLs where they can create alternate crawl paths.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After deployment, use Google Search Console URL Inspection on representative pages from the IP, old host, HTTP, HTTPS, apex, www, and IPv6 variants. Check that Google can fetch the redirect and eventually reports the expected selected canonical after recrawling.

Verification procedure

  1. Check the first response. Run curl -sS -D - -o /dev/null against each variant. Production alternates should return a permanent redirect, not a successful copy of the page.
  2. Check the destination. Confirm that Location uses the exact canonical HTTPS hostname and does not point to an IP, HTTP URL, old host, or another redirect.
  3. Check path and query retention. Test a deep URL with a query string and compare the final URL after curl -IL.
  4. Check the final response. Follow the redirect and confirm a normal successful page, not a loop, error, login wall, or unrelated default site.
  5. Check every network family. Test IPv4 and IPv6 separately when both are enabled; an AAAA record can bypass an IPv4-only fix.
  6. Check browser behavior. Open the IP and alternate hosts in a clean session and inspect the address bar, certificate, and developer-tools network panel.
  7. Check search signals. Inspect canonical tags, internal links, sitemap entries, and Search Console results after the site has been recrawled.

Troubleshooting common failures

The browser shows a certificate warning before redirecting

TLS negotiation happens before an HTTP redirect can be delivered. If the certificate does not cover the IP or requested hostname, the browser may block the connection. Use the canonical hostname, install a certificate that matches the name being served, or terminate TLS at a correctly configured CDN.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

The redirect loops between HTTP and HTTPS

Look at every layer: CDN encryption mode, reverse-proxy headers, origin rewrite rules, and application-level HTTPS redirects. A proxy that talks HTTP to the origin can cause the origin to believe the client is insecure unless the forwarding headers and trust settings are consistent. Remove duplicate rules and make one layer authoritative.

The IP serves the wrong website

The request is reaching another default virtual host. Put the catch-all block first or configure an explicit default server, then reload and retest with an unknown host. On a shared server, make sure the IP request is not being routed to a different tenant.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The path disappears or the query string is missing

Inspect the literal Location header. In Nginx, use $request_uri; in Apache, avoid replacing the request with a fixed home-page URL. In Cloudflare, enable path and query preservation. Test encoded characters, repeated parameters, and a URL without a trailing slash.

Only IPv4 redirects correctly

Check the AAAA record and the IPv6 listener. Configure an IPv6 default server or remove the record until IPv6 is ready. Test with curl --ipv6 and compare the response with the IPv4 result.

Cloudflare appears to ignore the rule

Confirm that the hostname is proxied, the rule expression matches the actual Host and scheme, and no higher-priority Redirect Rule, Page Rule, Worker, or cache is winning. Review edge analytics, purge an outdated redirect when necessary, and test from a response that exposes the current Location.

Search results still show the IP

Search engines do not change every result immediately. Confirm that the redirect is accessible, canonical tags and sitemaps agree, and no internal links continue to promote the IP. Use URL Inspection on representative URLs and wait for recrawling rather than creating additional redirect chains.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Origin server or CDN: choosing the control point

Decision axis Origin web server CDN or edge rule
Control point Runs on Apache, Nginx, or the application host. Runs before the request reaches the origin.
Scope Useful for one server’s default host and local access logs. Useful for alternate domains and global edge handling.
Path handling Use server variables or directives to retain the request URI. Use the provider’s explicit path/query preservation option.
Observability Inspect origin access and error logs plus command-line headers. Use rule analytics and edge response headers in addition to origin logs.
Dependency Works even when traffic bypasses a CDN. Requires correct DNS proxying and rule priority.

Many sites use both: the CDN performs the public hostname consolidation, while the origin’s default virtual host remains a safety net for direct traffic. Keep the resulting behavior identical so one layer does not send requests to a different destination.

Or skip the browser setup

If you only need a rendered reference of the canonical page while checking the result, ScreenshotNeo provides a website screenshot API and an MCP server for developers. Its cleanup step accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup action can be disabled. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response identifies the result with X-Page-Verdict and X-Billed headers. An MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.

Use the API endpoint shown in the ScreenshotNeo documentation to capture a URL without installing a browser:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo also supports full-page captures with lazy images loaded, CSS-selector element shots, dark mode, 12 device presets plus custom viewports, retina scale, PDF output, custom CSS and JavaScript, click-before-capture actions, selector hiding, waits for selectors, delays or network idle, request and resource blocking, custom headers/cookies/user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, configurable-TTL caching, signed links, asynchronous jobs with signed webhooks, bulk capture for up to 100 URLs per call, a usage API, and an OpenAPI specification. Common screenshot-API parameter names are accepted to ease migration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Plan Included shots Price
Free 1,000 per month No card required
Starter 3,000 $5
Growth 15,000 $15
Pro 60,000 $39
Scale 250,000 $99
Business 1,000,000 $249

Every feature is on every plan, and yearly billing gives two months free. Start with 1,000 free screenshots a month with no card; paid plans start at $5 for 3,000 shots.

Final deployment checklist

  • One exact HTTPS hostname is selected and its certificate is valid.
  • IP, HTTP, alternate-host, IPv4, IPv6, and unknown-Host requests are covered where applicable.
  • The first response is a single permanent redirect in production.
  • The Location header preserves the intended path and query string.
  • No rule points back to the IP, an old host, or an HTTP URL.
  • The final response is a normal successful page.
  • Internal links, canonical tags, and sitemaps name the same hostname.
  • Representative URLs have been checked with command-line tests and Search Console URL Inspection.

Frequently Asked Questions

Can DNS alone redirect an IP address to a domain?

No. DNS can point a hostname at an address, but an HTTP redirect must be returned by a web server, reverse proxy, CDN, or forwarding service.

Is every page available on an IP automatically a canonicalization problem?

No. It becomes a problem when the IP and hostname expose the same public content or when the IP is an unintended alternate entry point. A deliberately separate service may need different routing instead of consolidation.

How quickly will search results change after the redirect?

There is no fixed interval. Once the redirect, canonical tags, links, and sitemap agree, use URL Inspection and allow Google to recrawl the affected URLs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.