apache - 重写规则生成器?

标签 apache .htaccess mod-rewrite

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

5年前关闭。




Improve this question




任何人都知道生成 Apache 的在线工具 mod_rewrite将具有简单 .htaccess 问题的人指向的规则?

我正在考虑简单的标准场景:

  • 简单重定向 ( url1 => url2 )
  • 删除/添加 www.
  • /a/b/c/dindex.php?value1=a&value2=b...

  • 等等等等....

    我问是因为大多数出现在 SO 上的 mod_rewrite 问题都可以通过一个链接来回答,并帮助人们自助(好吧,就“帮助”而言,使用生成器工具提供帮助,该工具无需实际学习即可使用如何工作。)

    最佳答案

    更多此类问题可以通过指向 manual 的链接解决。 .
    如果我们只提供一个生成器的链接,答案就没有教育值(value),只会导致提出更琐碎的问题。我建议阅读 answers to this question form meta ,其中包含一些相关讨论。
    也就是说,快速 google search返回了一些有用的结果:

  • http://www.generateit.net/mod-rewrite//c/d 生成规则=> index.php?a=b&c=d
  • http://tools-for-webmasters.com/mod_rewrite_tool.html这个目前移至 https://www.301-redirect.online/htaccess-rewrite-generator
  • 关于apache - 重写规则生成器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3694740/

    相关文章:

    apache - 在 apache 配置中创建变量

    mysql - 从本地机器运行 Web 应用程序并在外部服务器上托管文件

    .htaccess - 来自俄罗斯萨马拉的奇怪交通是如何运作的?

    php - 多个重写规则导致内部服务器错误

    apache - 重定向重写规则,在url末尾添加参数

    apache - mod_rewrite 强制内部重定向

    python - python mysql where子句中的错误

    windows - SVN 和 Apache - 有什么优势吗?

    linux - Apache Total 通过 vhost 重定向到 https 需要一个位置

    .htaccess - htaccess - 一个干净的 URL 有效,但另一个无效