Latest SEO Guides
In-depth guides and tutorials to help you master SEO tools and techniques
Generate permanent 301 redirects for Apache (.htaccess) or Nginx servers. Preserve link juice and ensure users find your new pages seamlessly.
Guide sections for better results.
SEO Utility100% Free
No signup, no limits, no hidden costs
Privacy First
All processing happens in your browser
Instant Results
No waiting, no server processing needed
Generate production-ready 301 redirects across Apache, Nginx, PHP, HTML, and JavaScript. Real-time validation, circular redirect detection, and visual flow mapping included.
Add source and destination pairs. Status defaults to 301.
No issues detected. Redirects look good.
Visualize chains and potential loops. Red highlights indicate cycles.
In-depth guides and tutorials to help you master SEO tools and techniques
301 Redirect Generator | Free .htaccess & Nginx Redirect... is a free, browser-based SEO tool from 100 SEO Tools that helps you the tool takes your source and destination urls and generates the correct redirect syntax for your server environment. for apache, it produces rewriterule directives with proper flags. for nginx, it creates return 301 statements. it handles trailing slashes, query parameters, and domain changes, and warns about potential redirect loops.. No signup, no data storage — everything runs client-side in your browser for instant, private results.
When you move or rename a page, a 301 redirect tells search engines the content has permanently moved to a new URL. This preserves the SEO authority (link juice) you've built over time. The 301 Redirect Generator creates server-ready redirect rules for both Apache (.htaccess) and Nginx configurations. Enter your old and new URLs, select your server type, and get copy-paste-ready code.
The tool takes your source and destination URLs and generates the correct redirect syntax for your server environment. For Apache, it produces RewriteRule directives with proper flags. For Nginx, it creates return 301 statements. It handles trailing slashes, query parameters, and domain changes, and warns about potential redirect loops.
Broken links and missing redirects create 404 errors that frustrate users and waste crawl budget. When a page moves without a 301, search engines treat the new URL as a separate page, splitting authority between old and new URLs. A proper 301 redirect consolidates signals, maintains rankings, and ensures users always reach the correct content.
1) Fill the form inputs: - Old URL: e.g., /old-page - New URL: e.g., /new-page 2) Click "Generate Code" to process the inputs. 3) Review the Output panel. Copy or download results as needed.
Step 1: Enter old url
Pro tip: Use specific, audience‑aware phrasing (e.g., /old-page).
Step 2: Enter new url
Pro tip: Use specific, audience‑aware phrasing (e.g., /new-page).
Step 3: Click Generate Code
Pro tip: Keep inputs focused; iterate quickly for improvements.
Step 4: Review the output
Pro tip: Edit lightly to match brand voice and intent.
A 301 redirect is a permanent redirect from one URL to another. It tells search engines the content has moved permanently and transfers link equity from the old URL to the new one.
Yes. Google confirms that 301 redirects pass PageRank (link equity) from the old URL to the new one. This is why 301s are essential for URL migrations.
A 301 is permanent — use it when content has moved for good. A 302 is temporary — use it when content will return to the original URL. Using the wrong type can confuse crawlers.
Use a server-level redirect rule that matches all URLs on the old domain and forwards them to the equivalent pages on the new domain. Our generator handles this for both Apache and Nginx.
Yes. Redirect chains (A → B → C) waste crawl budget and slow page loads. Redirect directly to the final URL. Google recommends keeping chains to 5 hops or fewer.
1) Fill the form inputs: - Old URL: e.g., /old-page - New URL: e.g., /new-page 2) Click "Generate Code" to process the inputs. 3) Review the Output panel. Copy or download results as needed.
Yes, it is 100% free with no signup, no limits, and no hidden costs. All processing happens locally in your browser.
Yes. The interface is fully responsive and supports touch, keyboard, and screen reader input on all screen sizes.
It is fast, privacy-first (client-side only), and focused on clear, reusable outputs with built-in SEO guardrails. No login, no data storage, and no server processing.
Results are based directly on your inputs and the underlying processing logic. Review outputs for brand voice relevance and adjust as needed.
Yes. Provide specific context in the input fields and refine the generated output to match your brand voice and audience.
Yes. All processing is done client-side in your browser — we do not store, transmit, or share your inputs or results.
Yes. Use the Copy button to paste results into your CMS, or the Download button to save them as a file.
Use it as part of your regular SEO workflow — whenever you create or update content, audit pages, or need quick optimization checks.
Fast client-side processing, no login required, privacy-first design, consistent outputs, and actionable guidance aligned with current SEO best practices.
Apache .htaccess Output:
RewriteEngine On
RewriteRule ^old-page$ /new-page [R=301,L]
Nginx Output:
location = /old-page {
return 301 /new-page;
}
Domain Change Output (Apache):
RewriteEngine On
RewriteCond %{HTTP_HOST} ^old-domain.com$ [NC]
RewriteRule ^(.*)$ https://new-domain.com/$1 [R=301,L]Explore more tools in the same category to build a complete SEO workflow: