Rewrite rule generator?

42,580

Solution 1

Even more such questions could be solved with a link to the manual.

If we provide only a link to a generator, the answer has no educational value, and will result only in more trivial questions asked. I'd recommend reading answers to this question form meta, which contains some relevant discussion.

That said, a quick google search has returned some useful results:

Solution 2

A cheap google search has two that exist.

I've tried three so far. I like this one the most so far:

Also, if you need a tool to test these results:

Share:
42,580
Pekka
Author by

Pekka

Self-employed web developer and graphic designer. After-hours artist. Working from an old off-the-grid house in the Canary Islands. Not doing much here any more because the Stack Overflow I wish to build and participate in is no longer supported and the company running it has started going down a path of incomprehensible, increasingly outright evil actions. E-Mail: first name at gmx dot de

Updated on January 31, 2021

Comments

  • Pekka
    Pekka over 2 years

    Anybody know an online tool to generate Apache mod_rewrite rules to point people with simple .htaccess questions to?

    I'm thinking of simple standard scenarios:

    • Simple redirects (url1=>url2)

    • Removing / adding www.

    • /a/b/c/d to index.php?value1=a&value2=b...

    and so on and so on....

    I'm asking because most mod_rewrite questions turning up on SO could be answered with a link to that, and help people help themselves (well, help as far as "help" goes with a generator tool that can be used without actually having to learn how things work.)