Generate a 301 Redirect for .htaccess
Build permanent 301 redirects for an Apache server without memorizing the rewrite syntax. Set the source and target URLs and copy the generated rule into your .htaccess file.
htaccess Generator
Generate Apache .htaccess redirect and rewrite rules
Quick Start
- 1Choose the redirect rule type
- 2Enter the old URL and the destination URL
- 3Preview the generated .htaccess code with comments
- 4Copy the rule into the .htaccess file in your web root
More Generate Tools
All generators →Generate htaccess Force HTTPS Redirect
Create Apache .htaccess rules to force HTTPS and redirect www to non-www. Free online htaccess HTTPS redirect generator.
Generate a Privacy Policy for Your Website
Answer a few questions and generate a GDPR and CCPA ready privacy policy for your website. Free online privacy policy generator, no signup.
Generate a Privacy Policy for a Mobile App
Create an app store ready privacy policy covering device data and analytics. Free online privacy policy generator for iOS and Android apps.
Generate Terms and Conditions for Your Website
Configure sections and generate terms and conditions for your website or app. Free online terms of service generator, no signup required.
Generate Terms of Service for a SaaS App
Create SaaS terms of service covering subscriptions, accounts, acceptable use, and termination. Free online terms of service generator.
Generate a GDPR Cookie Consent Banner
Create copy-paste cookie consent banner code with no external library. Free online GDPR cookie banner generator with accept and reject options.
Looking for FAQs and advanced options? Visit the full htaccess Generator page →