Xbox Mod Chip - Bad Credit Mortgages - Mobile Phones - Homeowner Loans - Mortgage

PDA

View Full Version : Mod Rewrite for multiple directories


jarvi
Oct 19th 2004, 3:47 am
I have a script in a directory that uses mod rewrite and wish to use a different set of rules for another directory and can't get it to work.

RewriteEngine On
RewriteBase /directory1/
RewriteRule ^index.html$ index.php

How do I add a rule for another directory? Tried the following but really just trial and error and failing miserably.

RewriteEngine On
RewriteBase /directory1/
RewriteRule ^index.html$ index.php
RewriteBase /directory2/
RewriteRule ^(.*)-page-(.*).php?$ page.php?title=$1&recordid=$2 [QSA,L]

Any help greatly appreciated.