Technical SEO · FREE SEO UTILITY

Canonical Domain, HTTPS & www Single-Hop 301 Redirect Generator.

Eliminate duplicate hostnames and multi-hop redirect chains—generate single-hop HTTPS, www/non-www, index.php and trailing-slash 301 rules for Apache, Nginx & Cloudflare.

https://yourwebsite.co.ilSingle-hop 301 canonical consolidation
RewriteEngine On

# Strip duplicate /index.php and /index.html in a single 301 hop
RewriteCond %{THE_REQUEST} \s/+(.+/)?index\.(?:php|html?)[\s?] [NC]
RewriteRule ^(.+/)?index\.(?:php|html?)$ https://yourwebsite.co.il/$1 [R=301,L]

# Consolidate protocol and hostname in one 301 hop
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^yourwebsite\.co\.il$ [NC]
RewriteRule ^(.*)$ https://yourwebsite.co.il/$1 [R=301,L]

How to use this in your SEO workflow

  • Redirecting http://www to https://www and then to https:// creates a 2-hop chain; single-hop host+protocol rules cut latency in half.
  • Ensure your chosen canonical host matches your HTML <link rel="canonical"> tags and XML Sitemap URLs.
  • Stripping /index.php and /index.html consolidates duplicate homepage signals cleanly.
Audit live site canonicals and redirects in Site Audit
More utilities in this category:

Related in-depth SEO guides

SEO Academy