Page 1 of 1

If Then syntax in mod_rewrite ?

Posted: Wed Mar 01, 2006 11:54 pm
by intellivision

Code: Select all

RewriteRule page/mode/([0-9]+)/id/([0-9]+)(/)?$ page.php?mode=$1&id=$2&flag=1
is what I've got cooking currently, and it works fine. The flag=1 is to let the page know to write a redirect in the header for SEO purposes.

Question: how do I write If mode=new Then don't do this RewriteRule ?

Posted: Thu Mar 02, 2006 12:00 am
by feyd
RewriteCond ?