HTACCESS Redirect Generator

Generate Apache HTACCESS redirect rules for your website.

Enter the path relative to your domain (e.g., /old-page.html)
Enter the full URL or path (e.g., https://example.com/new-page.html)
Features
  • Multiple redirect types (301, 302, 307, 308)
  • Force HTTPS option
  • Force WWW option
  • Syntax highlighting
  • Copy to clipboard
  • Download .htaccess file
How to Use
  1. Select the redirect type
  2. Enter the source URL path
  3. Enter the target URL
  4. Choose additional options
  5. Click 'Generate' to create rules
  6. Copy or download the rules

Advertisement Space