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/
RewriteEngine On RewriteRule ^product/([^/]+)/([^/]+)/?$ product.php?id=$1&category=$2 [L,QSA]
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
- 1Paste a URL that includes query parameters, such as ?id=42.
- 2Review the clean address it creates.
- 3Copy the Apache or Nginx rules, depending on your server.
- 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.
Apache rules go in the .htaccess file in your site's main folder. Nginx rules go in the server configuration.
There is probably a typing error, or the server does not allow them. Restore your backup, then check the rules with your host.
Related tools
Continue with these related website management tools.
Website SEO Score Checker
Get an instant SEO score out of 100 with a detailed breakdown of title, meta, headings, images, links, social tags and technical signals from the live page.
Website Ping Test
Ping any website: measure real response times from your browser and check whether the server is online, with its HTTP status and redirects.
Website Page Speed Checker
Measure real load timing for any page: response time, HTML size, code-to-text ratio, resource counts and Core Web Vitals-style recommendations.