If Then syntax in mod_rewrite ?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
intellivision
Forum Commoner
Posts: 83
Joined: Mon Aug 22, 2005 1:25 am
Location: Orbit

If Then syntax in mod_rewrite ?

Post 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 ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

RewriteCond ?
Post Reply