Mod Rewrite or htaccess 301 Rule Generator

This .htaccess url rewrite generator or mod rewrite generator can be used for two purposes:

1. You want to rewrite an URL to a human readable/user friendly version.
2. You want to "301" redirect you URL or domain to another URL or domain.

Tool Details and User Instructions

Mod Rewrite is a way of manipulating URLs in a more powerful way you can imagine. Mod rewrite rules are written in a .htaccess file. Writing these rules are a very tedious task for beginners. For example, you don’t know how to code, but you want to redirect your domain to another domain, then how are you going to write that rule? But don’t worry, our free online .htaccess rewrite generator will help you to generate the code. Just copy and paste the code into your .htaccess file. 

You can also rewrite a URL to a more readable version. For example, you have a website where dynamically created inner URLs are like “http://www.example.com/?product=5“. This URL is not telling anyone what the page is about or what the product is? But with a mode_rewrite rule, you have the ability to make the URL more user-friendly e-g “http://www.example.com/toolsiseek“. Our tool will help you to generate the most suitable URL for the users.

The Windows servers use IIS URL Rewrite module, and the Linux servers use the mod_rewrite module to enable URL rewriting.

Learn how to write these rules here. Also check our url to domain tool.

How to Use Mod Rewrite Rule Generator?

1.

  Enter dynamic URL of the website in the text field under From.

2.

  Enter the static URL you want to change into, in the text field under To.

3.

  Select 301 or Rewrite radio button.

4.

    Click Submit to rewrite. URL is rewrite and result is given in a text field.

5.

   Copy rewrite URL from the text are and Paste it in your .htaccess file.

Tool Steps Snapshots

Mod Rewrite Rule Generator 1
Mod Rewrite Rule Generator 2
Mod Rewrite Rule Generator 3
Mod Rewrite Rule Generator 4
Mod Rewrite Rule Generator 5
Mod Rewrite Rule Generator 6