🛠️ FreeTool.jp JP
FAQ Privacy Policy

htaccess Redirect Generator

Generate Apache .htaccess redirect rules with a visual editor

リダイレクトルール

追加オプション

www 統一
トレイリングスラッシュ
カスタムエラーページ

About htaccess Redirect Generator

The htaccess Redirect Generator lets you create Apache .htaccess redirect rules through an intuitive GUI, without needing command-line tools or text editors. Simply specify source and destination URL paths and select a status code (301, 302, 303, 307, or 410) to auto-generate properly formatted Redirect directives.

Understanding status codes is crucial for proper redirection. Use 301 for permanent redirects that preserve SEO value, 302 for temporary redirects, 303 for redirecting to a different resource, 307 for temporary redirects that preserve the HTTP method, and 410 to indicate permanently removed content.

The tool also supports forcing HTTPS, normalizing the www prefix (add or remove), controlling trailing slashes in URLs, adding HSTS Preload headers for enhanced security, and configuring custom error pages for 404, 403, and 500 errors. Generated code can be copied or downloaded with one click and pasted directly into your .htaccess file. All processing happens entirely in your browser for maximum security and convenience.

How to use htaccess Redirect Generator

  1. Enter the source URL path (e.g., /old-page).
  2. Enter the destination URL (e.g., /new-page or https://example.com/new-page).
  3. Select a status code (301/302/303/307/410).
  4. Click '+ Add' to add the redirect rule to the list. You can add multiple rules.
  5. Optionally configure HTTPS enforcement, HSTS Preload, www normalization, trailing slashes, and custom error pages.
  6. Click 'Generate .htaccess Code' to generate the code.
  7. Copy or download the generated code and paste it into your server's .htaccess file.

Benefits of htaccess Redirect Generator

  • Generate accurate redirect rules through a GUI without memorizing .htaccess syntax
  • Supports 301, 302, 303, 307, and 410 status codes for flexible redirect configuration
  • Includes practical options like HTTPS enforcement, HSTS Preload, www normalization, and trailing slash control
  • Manage multiple redirect rules together and configure error pages in one place
  • All processing happens in your browser — secure, private, and no installation required

他のカテゴリ

Text Tools の人気ツール TOP 10

Text Tools のすべてのツール (58件)