开发者

Rewrite rule generator? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve this question

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.)


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


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.php Doesn't work anymore.

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

  • apache rewrite tester: http://martinmelin.se/rewrite-rule-tester/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜