一个工具来调试和测试mod_rewrite的(的.htaccess)指令 [英] A tool to debug and test mod_rewrite (.htaccess) directives

查看:209
本文介绍了一个工具来调试和测试mod_rewrite的(的.htaccess)指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然是一个体面的Web开发人员,我和大多数同事总是使用mod_rewrite时基本任务奋斗。

Although being a decent web developer, I and most of my colleagues always struggle with basic tasks when using mod_rewrite.

我看了 并理解大部分的手册,但是大多数的技能我已经在生活中学会是通过做。麻烦的是,有调试配置的没有简单的方法。大部分时间,如果我在配置的.htaccess 文件,它是由纯粹的随机运气不是通过反复试验获得成功。

I read the manuals and understood most of it, however most skills I've learned in life are by doing. The trouble is, there's no easy way to debug the configuration. Most of the time if I succeed at configuring the .htaccess file it's by sheer random luck not by trial and error.

我知道一可以读取Apache的错误日志或通过重写规则的结果GET参数present他们说,PHP文件,但不方便和缓慢的。

I realize one can read Apache error logs or pass rewriteRule results to GET parameters and present them in say, PHP files, but that's inconvenient and slow.

所以,问题。的是否有编写和调试 .htaccess 指令的工具吗?

So, the question. Is there a tool for writing and debugging .htaccess directives?

推荐答案

您可以使用我们的 htaccess的测试仪。它可以让你测试基本重写规则和条件,我们正在努力改善它随着时间的推移功能,但它与当前的功能集做这项工作得很好。

You could use our htaccess tester. It allows you to test basic rewrite rules and conditions, we are trying to improve it's functionality over time but it does the job quite well with the current feature set.

这篇关于一个工具来调试和测试mod_rewrite的(的.htaccess)指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆