Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mod_rewrite GUI?

Tags:

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.

like image 205
Allain Lalonde Avatar asked Mar 06 '09 13:03

Allain Lalonde


People also ask

What is mod_rewrite?

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.

What is an Apache rewrite rule?

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.

What is RewriteCond and RewriteRule?

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, >=, == , !


2 Answers

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.

like image 80
Salman A Avatar answered Nov 02 '22 14:11

Salman 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/

like image 39
OtakuD Avatar answered Nov 02 '22 12:11

OtakuD