Htaccess Generator
Generate different types of redirects for your Apache server
Redirect Settings
Additional Options
Basic Redirect
Domain Redirect
Complete .htaccess
Redirect copied to clipboard!
How to use Htaccess Generator?
- Select the redirect type from the drop-down menu (e.g., 301 Permanent, 302 Temporary, WWW to non-WWW, etc.) as shown on the tool interface.
- Enter the source URL or path that you want to redirect from.
- Enter the destination URL you want users or search engines to be redirected to.
- Click the “Generate .htaccess Code” button.
- Copy the generated code and paste it into your
.htaccess
file located in the root directory of your website. - Save the file and upload it to your server if editing locally.
- Test your redirect to ensure it’s working correctly.