URL Rewriting Tool

Convert dynamic URLs with query strings into clean, SEO-friendly static URLs and generate the matching .htaccess rewrite rules.

Before (dynamic)

https://example.com/product.php?id=42&category=shoes

After (static, SEO-friendly)

https://example.com/product/42/shoes/

Apache .htaccess
RewriteEngine On
RewriteRule ^product/([^/]+)/([^/]+)/?$ product.php?id=$1&category=$2 [L,QSA]
Nginx
rewrite ^product/([^/]+)/([^/]+)/?$ /product.php?id=$1&category=$2 last;

Why rewrite URLs?

  • Keywords in the path are a minor ranking signal and improve click-through rates.
  • Static-looking URLs are easier to share, remember and cite.
  • Fewer parameters mean fewer duplicate-content variations for crawlers.
  • Remember to 301-redirect the old dynamic URLs and update your canonical tags.

Website Management Tools

About the URL Rewriting Tool

The URL Rewriting Tool turns an address with query parameters, such as product.php?id=42&cat=shoes, into a clean-looking version like /product/42/shoes, and writes the rewrite rules for both Apache (.htaccess) and Nginx.

Clean addresses are easier to read, remember and share, and they make it clearer what a page is about. Keywords in a URL are only a minor ranking signal, so the main benefit is for people.

Rewriting does not change your site by itself. Your links must also be updated to use the new format, and old addresses should send visitors to the new ones with a 301 redirect. A mistake in .htaccess can take a site offline, so keep a backup and test on one page first.

How to use this tool

  1. 1Paste a URL that includes query parameters, such as ?id=42.
  2. 2Review the clean address it creates.
  3. 3Copy the Apache or Nginx rules, depending on your server.
  4. 4Back up your existing file, add the rules and test the page.

Best-practice tips

  • Most shared hosting uses Apache. Ask your host if you are not sure.
  • WordPress has a Permalinks setting, so you do not need manual rules there.
  • Never change addresses on a live site without planning redirects.

Answers

URL Rewriting Tool FAQs

Only a little. Google can crawl parameters. The main gain is that addresses are clearer for people.

Related tools

Continue with these related website management tools.