mod_rewrite GUI?

后端 未结 6 919
轻奢々
轻奢々 2021-01-31 09:59

Anyone have a graphical tool for developing mod_rewrite rules.

Ideally it would display a pipeline of rewrites and then when given an instance of a uri would show the tr

相关标签:
6条回答
  • 2021-01-31 10:17

    I am not aware of any such tool. The way I've addressed this problem was through a set of unit tests that are checking the correctness of my rules. If you want to have your tests always in synch with the config, you'll have to configure your tests to read the load the rules directly from the config file.

    ./alex

    0 讨论(0)
  • 2021-01-31 10:23

    There is also a new webapp developed by technicalseo.com with help of mwl.be api they have nice gui with same functionality.

    https://technicalseo.com/tools/htaccess/

    0 讨论(0)
  • 2021-01-31 10:25

    I dont know of any downloadable tools but there are a few helpful sites that I use to get the basics done:

    http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml

    http://www.thejackol.com/htaccess-cheatsheet/

    0 讨论(0)
  • 2021-01-31 10:29

    Sounds like you're looking for an app like RegexBuddy.

    0 讨论(0)
  • 2021-01-31 10:33

    For online testing of .htaccess (read: mod_rewrite) rules, try:

    http://htaccess.madewithlove.be/

    It shows you what and how rules are applied to the input URL.

    0 讨论(0)
  • 2021-01-31 10:40

    I think it’s quite hard to write one. Because mod_rewrite’s behavior is heavily dependent on the environment it’s used in.

    Take for an example the -f expression for the RewriteCond directive to test if TestString exists and is a regular file in the file system. How would you do this without the actual file system?

    Though the basic behavior (just the RewriteRule directive) could be implemented.

    0 讨论(0)
提交回复
热议问题