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.
Related in-depth SEO guides
Strategy
Fix Indexability and Status-Code Blockers Before Cosmetic Warnings
Triage technical audit findings by real ranking impact instead of getting bogged down in minor meta-length notices.
Data readingRespect Crawl Bounds and Partial Coverage Indicators
Understand what observed-HTML bounded crawls measure—and how partial coverage prevents false "all clear" assumptions on large sites.