1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Mod Rewrite for multiple directories

Discussion in 'Apache' started by jarvi, Oct 19, 2004.

  1. #1
    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.
    SEMrush
    RewriteEngine On
    RewriteBase /directory1/
    RewriteRule ^index.html$ index.php
    Code (markup):
    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]
    Code (markup):
    Any help greatly appreciated.
     
    jarvi, Oct 19, 2004 IP
    SEMrush