views:

516

answers:

5
+11  Q: 

mod_rewrite GUI?

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 transforms as the get applied.

It's always a pain to get them setup just right so any way of making it easier would help.

A: 

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

ceejayoz
Nope, problem isn't the regular expressions, it's the way in which the rules interact with each other.
Allain Lalonde
A: 

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

alexpopescu
+1  A: 

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/

OtakuD
A: 

Try this one: http://www.weitz.de/regex-coach/

turezky
+3  A: 

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.

Gumbo