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.

need help in .htaccess file

Discussion in 'Apache' started by itsmani1, Aug 27, 2005.

  1. #1
    i have problem with my .htaccess file.
    ------------------
    RewriteEngine On
    RewriteRule ^(.*).html content.php?ContentID=$1
    -----------------------
    i want it work in root but not in other dirs....


    Thanx.
    Mannan.
    abdul.mannan@hotmail.com
     
    itsmani1, Aug 27, 2005 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    I always put in
    RewriteBase /
    Code (markup):
     
    sarahk, Aug 27, 2005 IP
  3. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Note that RewriteBase won't help you here, its purpose is somewhat different. Instead, try this:

    
    RewriteEngine On
    RewriteRule ^([^/]*)\.html$ content.php?ContentID=$1
    
    Code (markup):
     
    Willy, Aug 27, 2005 IP