Skip to content

How to Use URL Rewrite Generator

Turn dynamic URLs like product.php?id=12 into SEO-friendly URLs such as /product/12 and generate the Apache mod_rewrite rule that serves them.

About this tool

Turn dynamic URLs into SEO-friendly URLs with generated mod_rewrite rules.

How to use URL Rewrite Generator

  1. Paste a dynamic URL with its query string.
  2. Choose the friendly URL style and ending.
  3. Copy the rewrite rule into .htaccess and update your site links to the friendly form.

Worked example

https://example.com/product.php?id=12&category=shoes becomes https://example.com/product/12/shoes, with a rule that quietly serves product.php?id=12&category=shoes.

Does the rewrite change my links automatically?

No. The rule serves the friendly URL; you still need to change the links your site outputs.

Is a rewrite the same as a redirect?

No. A rewrite happens inside the server and the address bar keeps the friendly URL. A redirect sends the browser to a new address.

Put this guide into practice

Explore Webmaster & SEO Tools · More practical guides

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help