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.
mod_rewrite is an Apache module that allows for server-side manipulation of requested URLs. mod_rewrite is an Apache module that allows for server-side manipulation of requested URLs. Incoming URLs are checked against a series of rules. The rules contain a regular expression to detect a particular pattern.
RewriteRule specifies the directive. pattern is a regular expression that matches the desired string from the URL, which is what the viewer types in the browser. substitution is the path to the actual URL, i.e. the path of the file Apache servers. flags are optional parameters that can modify how the rule works.
RewriteRule is used to rewrite the url as the name signifies if all the conditions defined in RewriteCond are matching. One or more RewriteCond can precede a RewriteRule directive. If we talk about traditional programming RewriteCond works just like 'If' condition where you can use conditions like AND, OR, >=, == , !
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With