Which redirects your site needs
To a search engine, example.com, www.example.com and http://example.com are three different sites with the same content. Redirects merge them into one URL so rankings and backlinks aren’t split between duplicates.
HTTPS and the preferred domain
The bare minimum for any site: every HTTP request and every request to the “wrong” www or non-www version goes to one URL. The generator does it in a single hop, without a chain.
Duplicate pages
/page and /page/, double slashes, index.php in the URL: one page to a visitor, different pages to a crawler. Pick one format and redirect the rest to it.
Domain moves and new site structure
Changed your domain or section URLs? Redirect old pages to new ones. That way you keep your rankings, bookmarks and traffic from ads and social media.
How to add the code to your site
If your site runs on a builder like Wix or Squarespace, you can’t access .htaccess: HTTPS and the preferred domain are set in the domain settings, and page redirects in the site settings.
Apache: the .htaccess file
Open .htaccess in your site’s root folder over FTP or in your host’s file manager. Paste the code at the top, before the CMS rules, and save.
nginx: the site config
Domain server blocks go next to the main one, page rules go inside the main server block. Then run nginx -t and reload.
Testing
Open the old URLs in an incognito window. In developer tools on the Network tab, you should see a 301 status and a single hop.
Your traffic is tagged. Now turn it into leads
A LeadForms quiz asks visitors a few questions and collects their contact details along with the answers. UTM parameters are saved with every lead, and quiz progress shows up as events in Google Analytics 4.
UTM tags in every lead
Source, campaign and ad arrive with the contact details in your email, Telegram, Kommo, Bitrix24 or via webhook.
Google Analytics 4 events, no code
Paste your measurement ID into the quiz settings and track progress with events: opened the quiz, started answering, submitted their details. How to connect it.
A quiz in 10 minutes
Ready-made templates for your industry, or an AI draft based on a description of your business. Your first 20 leads are free, then pick a plan.
Other free tools
Free and no sign-up required, just like this generator.