Rewrite rule generator?
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:
-
http://www.generateit.net/mod-rewrite/ generates rules for
/c/d
=>index.php?a=b&c=d
- http://tools-for-webmasters.com/mod_rewrite_tool.html this one currently moved to https://www.301-redirect.online/htaccess-rewrite-generator
Solution 2
A cheap google search has two that exist.
I've tried three so far. I like this one the most so far:
- Generate it - http://www.generateit.net/mod-rewrite/
-
htaccess url rewrite generator - http://www.myseotool.com/free-seo-tools/htaccess-url-rewrite-generator.phpDoesn't work anymore.
Also, if you need a tool to test these results:
- apache rewrite tester: http://martinmelin.se/rewrite-rule-tester/

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, 2021Comments
-
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
toindex.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.)