Online Redirect Generator
Generate redirect code from source URL to target URL. Choose HTML meta refresh, JavaScript, or Apache .htaccess style and copy the snippet.
Frequently Asked Questions
- What redirect types are supported?
- HTML meta refresh (client-side), JavaScript (window.location), and Apache .htaccess (Redirect or RewriteRule) style. Server 301/302 is best for SEO when available.
- When to use client vs server redirect?
- Use server 301/302 when you control the server (best for SEO). Use meta or JS when you only have static files (e.g. GitHub Pages, simple hosting).
- Where do I put the generated code?
- Meta refresh: in the page head. JavaScript: in a script tag or file. .htaccess: in the site root or the directory that should apply the rule.
Related SEO Tools
Meta Description Generator
Generate SEO meta descriptions for your pages. Optimize length and keywords for search results.
UTM Builder
Build UTM-tagged URLs for campaign tracking. Add source, medium, campaign, term, and content parameters.
Google SERP Preview Optimization Tool
Preview how your title and meta description will appear in Google search results (~60 / ~160 chars).
Keyword Density Checker
Check keyword density: enter text and a keyword to see count, occurrences, and density (count/total words × 100).
Open Graph Generator
Generate Open Graph meta tags (og:title, og:description, og:image, etc.) as HTML or JSON.
Robots.txt Generator
Generate robots.txt content for your domain. Set User-agent rules and Allow/Disallow paths for search engine crawlers.