en
English
All Tools
.htaccess Redirect Generator
Generate 301/302 redirect rules for Apache .htaccess.
From (path or URL)
To (URL)
Type
301 Permanent
302 Temporary
Force HTTPS
—
Force www
Force non-www
RewriteEngine On # Force HTTPS RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] # Redirect /old-page → https://example.com/new-page Redirect 301 /old-page https://example.com/new-page
Copy
Share this tool