- Home
- Files and configuration
- URL Rewriting Generator
URL Rewriting Generator
Turn your technical addresses into readable ones, and get the server rule that goes with them.
Locally generated mod_rewrite directives, compatible with Apache and LiteSpeed. Nothing is stored, and there is no usage limit.
What this tool is for
A dynamic URL of the form /product.php?category=12&id=847 works perfectly, but it says nothing. Not to a human receiving it in a message, nor to Google displaying it in its results.
Rewriting means exposing a readable address while keeping the technical workings behind it. The visitor sees /shoes/mens-running, the server translates internally to the script and its parameters.
Let us be honest about the benefit: it is not a significant ranking lever. The real gain is the click-through rate, because Google bolds the words of the URL matching the query — and trust, because a readable address gets shared without hesitation.
The advice that argues against using this tool: do not rewrite the URLs of an already indexed site for that reason alone. The gain is modest, the risk of loss during the migration is not. Keep this for new projects.
How to read the results
The URL proposed is the main result. Check that it stays understandable out of context: an address that says nothing more than the old one is of no use.
The rewrite rule is the Apache directive to place in your .htaccess. It translates the clean address into the technical one, internally and invisibly.
The associated redirect is indispensable if the old address was already indexed. Without it, both versions coexist and compete. The redirect generator produces the matching 301.
The warnings flag the common faults: accents, capitals, special characters, excessive length. Each is fixed before publishing, which is far simpler than afterwards.
Common mistakes
Rewriting an already indexed site with no need. You take a real risk of loss for a small benefit. Only do it during a rebuild where the addresses change anyway.
Serving the same page at two addresses. If the old URL stays reachable with no redirect, you create duplication. A 301 redirect is compulsory, not optional.
Stuffing the URL with keywords. /running-shoes-mens-cheap-sale-discount does not help and looks manipulative. Three to five descriptive words are enough.
Using capitals. Linux servers are case-sensitive: /Shoes and /shoes are two different addresses, with a risk of duplication. All lowercase, without exception.
Forgetting the canonical on parameterised URLs. Campaign identifiers create as many variants of the same page. With no canonical, Google indexes each separately.
Going further
- Htaccess Redirect GeneratorProduces the redirect rules
- Redirect CheckerFollow the full redirect chain of a URL, hop by hop
- Meta Tags AnalyzerTitle, description, Open Graph and indexing directives of a page
Frequently asked questions
Do clean URLs improve ranking?
Very marginally as a factor. The real benefit is elsewhere: Google bolds the words of the URL matching the query, which improves the click-through rate. And a readable address gets shared, remembered and trusted, where a run of parameters puts people off.
Should I rewrite the URLs of an existing site?
Rarely. Changing the addresses of an already indexed site imposes a complete redirect plan, with a real risk of loss. The expected gain is modest. Keep rewriting for new projects, or for rebuilds where the URLs change anyway.
Should URLs contain accents?
No. Technically allowed, they are turned into percent-encoding when shared, which produces unreadable addresses. Replace accented characters with their unaccented equivalent: “référencement” becomes “referencement”.
Hyphens or underscores?
Hyphens. Google treats the hyphen as a word separator and the underscore as a joining character: “my_article” is read as one word, “my-article” as two. It is an old rule but still valid.
How long should a URL be?
As short as possible while staying descriptive. Three to five words are generally enough. An address that is too long gets truncated in the results and is awkward to share, with nothing in return. Drop the empty words: “the”, “a”, “of” add nothing.
Should tracking parameters be kept?
They are useful for measuring your campaigns, but they create as many variants of the same page. Always declare a canonical tag pointing at the address without parameters, otherwise Google indexes dozens of versions of the same content.